Best plugin for URL redirects in WordPress?

I’d like to redirect urls in a WordPress site and I could use recommendations for good plugins or methods of doing this effectively and cleanly. What I’d like to do is redirect something like:

http://acmesite.com/pathA/page.html

to:

http://acmesite.com/pathB/page.html

What I want to do is change a top level menu item on the site without breaking all the links to the underlying pages. I can change the links I am aware of but I’d like to ensure that legacy links still resolve to the correct page on the new URL path.

Any suggestions how best to do this?

Published by Paul

Enthusiast, writer, Happiness Engineer at Automattic. I take photos too. Passionate about my wife, Gina and #proudDad.

Join the conversation

No comments

    1. I knew about the Redirection one. It looked a bit neglected. The other one looks interesting, if anything because its a Yoast plugin.

  1. Try this:

    RedirectMatch 301 /pathA(.*) /pathB/$1

    Or

    RewriteRule ^pathA/(.*)$ /pathB/$1 [R=301,NC,L]

    If you’re using Worrpress the .htaccess file should already exist.

Leave a comment

What do you think?

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: