Using mod_rewrite, how could I turn URLs that follow this pattern:
http://example.com/index.php?id=14
Into this pattern:
http://example.com/14/
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.
As I think that you rather want to rewrite requests to
/<ID>/internally to/index.php?id=<ID>, try this:But if you really want to redirect requests to
/index.php?id=<ID>internally to/<ID>/:And if you want to preserve possible other URL arguments: