Forum Moderators: phranque
I need to find a way to redirect all pages, such as:
http://www.example.com/archives/2005/05/los-angeles to
http://www.example.com/blog/2008/05/los-angeles
You will notice that the blog is NOW located in a subdirectory "/blog" ... and I have changed the year "/2005" to "/2008". I believe that I can now change the "/archives" part to the subdirectory "/blog" and all the pages will pull up correctly in the search engines.
With .htaccess, I tried adding:
Redirect 301 archives/2005/05 http://www.example.com/blog/2008/05 and
RedirectPermanent archives/2005/05 http://www.example.com/blog/2008/05
but neither worked.
I'm losing LOTS of traffic to 404s. Any assistance would be greatly appreciated! :)
[edited by: jdMorgan at 7:46 pm (utc) on Sep. 5, 2008]
[edit reason] Use example.com please. [/edit]
I note that neither of your Redirect URL-paths begins with the required slash, as shown in the mod_alias documentation...
Jim
I went with the "Redirect 301 /" since it was currently in my .htaccess file. In your opinion, is that the correct choice ... or would I be better going with "RedirectPermanent /"? Or does it really make a difference?