How can I redirect a URL like
http://sample.com/view_image?v=random key like youtube
to
http://sample.com/view/?v=random key like youtube?
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.
In the htaccess file in your document root you can do either:
or
Or you can use mod_rewrite if you already have rules and you don’t want mod_alias directives conflicting with your existing rewrite rules:
The
?v=somethingquery string will automatically get appended to the end in all three cases.