Hi there,
I am merging a few separate WP sites into one WP site and have run into a conundrum.
One of the sites that's being merged into the new one has a single-post permalink structure like this:
http://www.olddomain.com/category-name/post-name/
(This site only had one category.)
Nearly 200 posts from this site are being merged into a new site, which has a permalink structure for posts like this:
http://www.newdomain.com/YYYY/MM/post-name/
I am trying to have post URLs from the old site automatically redirect to their counterparts on the new site.
The problem, as you can see, is that the new site incorporates the month and year of the post, so there's no easy way that I can think of to set up an .htaccess rule to redirect the old URLs to the new.
Of course I can set up an .htaccess with 200 separate lines, each redirecting an old URL to new, but that's tedious and I thought there must be a better way.
Then I thought of an alternative:
What if there was a way to set up a different permalink structure for a single category?
That way, URLs on the new site for posts in this category could look like: http://www.newdomain.com/category/category-name/post-name/
... and I could now do site-wide redirects via .htaccess
The catch is that I can't find a way to do any of these things.
I found one plug-in called Custom Permalinks which allows you to set custom slugs on a per-post basis, but that would still entail me going back and changing the slugs on the 200 posts in the affected category.
Any suggestions or workarounds appreciated!