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

    /archives/year/month/day/title-of-entry/

    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.

    Cheers.

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

    (@otto42)

    www.ads-software.com 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/(.*) https://yoursite.com/$1 [R=301,L]

    Then just change your permalink configuration to the new way.

    Thread Starter davidcollantes

    (@davidcollantes)

    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:

    https://www.deanlee.cn/wordpress/permalinks-migration-plugin/

    Thank you much, Otto!

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com 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.