How do I make a site with Search Engine friendly urls? Do I need special PHP code instead of:
$_GET['id']
How to access ‘id’ variable after rewriting URL?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just add this to your htaccess file
note: if you already have
on your htaccess file, just place
under it and ignore the rest
instead of visiting domain.com/?id=123456, you now visit domain.com/123456/. then on that page you can still use $_GET[‘id’] the way you normally would