In the .htaccess file:
Redirect 301 /john-biography.php /about
When I type domain.com/john-biography.php in the browser, it become:
domain.com/about?/john-biography.php
Is that normal or what can be done to prevent that?
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.
This behavior is typically for a conflict between mod_alias (
Redirect) and mod_rewrite where a URL is redirected externally that was already rewritten internally by mod_rewrite.In that case you should not use mod_alias but mod_rewrite only. So just convert your directive into a mod_rewrite equivalent:
Put this in front of your other rules that rewrite internally.