Forum Moderators: phranque
For example:
redirect 301 /advertising.html http://www.example.com/ads/ I'm wondering, is it better to use mod_rewrite instead? eg:
RewriteRule ^advertising.html$ http://www.example.com/ads/ [R=301,L] Keeping in mind that these are in the httpd.conf, NOT the .htaccess. And there are other mod_rewrite rules due to some SEO friendly url plugs (for phpbb, specifically).
Thanks for any advice!
[edited by: jdMorgan at 2:43 am (utc) on Jan. 9, 2010]
[edit reason] example.com [/edit]
Change the module load-list order, and this reverses.
Code function depended on the relative module execution order? -- Ooops! I hope someone's there who remembers this info and can figure it out...
Above recommendation seconded -- and not lightly.
Jim
If, through some future event such as you changing jobs, selling the site, changing hosting, or whatever, you lose control of the LoadModule order, then the code may suddenly stop working, and no-one will know why...
Anyway, I'm not going to beat a dead horse; We've cited best-practice, and you may ignore it if you wish.
Jim