I want to show the URL
http://www.example.com/blog/feedback
as
http://www.example.com/feedback
How can I do so using .htaccess?
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.
You will need mod_rewrite to do this.
Have a look here for a tutorial information on mod_rewrite.
EDIT:
If you are trying to move JUST
/blog/feedbackto/feedbackthen you will have to first move your base from/app/webroot/blog/to/app/webroot/, edit all your rules to account for it and then add your new rule. Could be done like so:NB: This should work, but I’m not at my work station right now so I can’t check it 🙁 If anything goes wrong it’s probably a typo somewhere – let me know.