I need help with apache url rewrite,I want all urls with no extension to be redirected to index.php?id=query_string.
http://www.abc.com/abc it should go to http://www.abc.com/index.php?id=abc
for links with extensions it should not disturb
Thanks
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.
Not sure this is what you’re looking for, but here’s my go at it:
If the URL does not contain a ‘.’ character and it contains just letters it puts it in the ‘id’ request, else it leaves it unchanged
Hope this helps.