Support » Fixing WordPress » Changing URI while maintaining old one functional

  • I have been using since the beginning (coming from my very first MT installation) the URI (for archives, single pages) as:


    I would like to drop the /archives part while keeping the old way viable still, so indexed entries and links/trackbacks do not break.

    Does anyone knows how to accomplish this? Any help appreciated.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    You’ll need to add a rewrite rule into your .htaccess to redirect the old way to the new way. Something like this should work:

    (this should be all one line)
    RewriteRule /archives/(.*)$1 [R=301,L]

    Then just change your permalink configuration to the new way.

    Excellent, that works just fine. I also found out (after I did it just like you proposed) that there is a plugin that does it as well. It is:

    Thank you much, Otto!

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    The migration plugin is much more flexible, and I recommend it if you are doing anything more complex than the above, however for simple changes like this one, the RewriteRule is a) faster and b) causes less load on your site. So use those when you can, but if you can’t, that plugin is a good choice.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing URI while maintaining old one functional’ is closed to new replies.