I have a PHP website site that uses GET variables to determine what it should be doing…
eg /index.php?s=about&p=2
It seems that I should be able to change this using rewrite rules so I could use URLs like:
/about/2
How can I get that behaviour?
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.
/about/2.You need to adjust any relative links to be either absolute links or add this to the header of all your pages:
Add these rules to the htaccess file in your document root to change the nice looking links back to the ugly links:
Just so search engines can re-index your pages, you need to 301 redirect the old ugly ones to the nice looking ones by adding this to the same htaccess file: