Forum Moderators: phranque
eg:
Redirect permanent /page/139 http://www.example.com/my-action/promotions-main
resolves to
http://www.example.com/page/promotions-main
I'm fairly new to .htaccess and have no idea what is causing this. Does anyone have a suggestion?
Thanks in advance.
[edited by: jdMorgan at 6:05 am (utc) on April 2, 2009]
[edit reason] example.com [/edit]
If you have any mod_rewrite directives as well as this mod_alias directive, then it is possible that the execution order is incorrect: Be aware that "code" in .htaccess is not executed in the order that it is written. Rather, each Apache modules parses the .htaccess file, and executes the directives that it recognizes. The module execution order is determined by the server configuration.
When posting 'trouble reports' here, please provide the following basic info needed for describing and troubleshooting the problem:
How did you test? (e.g. What URL did you type?)
What were the results? ("It doesn't work" is not a useful answer)
What were the results that you expected?
How did the actual results differ from your expectations?
If there are other directives which perform either external redirects or internal rewrites, and which may be interfering with your new directive, please post them (unless they are copyrighted).
Thanks,
Jim