I'm in the process of migrating a website from an old CMS to Wordpress. The way that some of the old URLs were:
http://www.example.com/tags/tagged/tag/tag+name
For Wordpress, I need it to be the following URL:
http://www.example.com/tag/tag-name
So I need to remove the /tags/tagged
sub-directories and also change the +
signs to -
signs. Is there any way to do this with .htaccess?
/tags/tagged
any two subdirectories? Or some specific subdirectories or a singular specific URL-path? In the/tag/tag-name
part, it looks like the preceding subdirectory matches the first part of the final path segment - is that significant? "change the + signs to - signs" - could there be more than one+
sign? Or is it literally justfirst+second
? Or even hardcodedtag+name
??tag
is literal andtag-name
is a URL slug. I'm taking it astags/tagged/tag
is literal andtag+name
is a URL slug with possibly multiple plusses.