I’ve been searching all over but can’t quite find exactly what I’m looking for so here goes.
I have quite a large blog and would like to move the posts from a specific category to a new domain and will need the old URL’s for just that category redirect to the new domain.
For example I have the category ‘paper’, I plan to export all the posts from WordPress in that category and import them to my new site on a new domain. so I want:
www.currenthome.com/paper/post-name-here
to redirect to
www.newhome.com/paper/post-name-here
I have over 900 posts which will need directing.
Just to be clear I only one the posts from one specific category to be redirected. The rest of the posts on the current site should not be affected.
Any help will be much appreciated!
You may try this in the root .htaccess file of
currenthome
, below the WP rule-set:Redirects permanently:
http://www.currenthome.com/paper/post-name-here
orhttp://currenthome.com/paper/post-name-here
with or without trailing slash.To:
http://www.newhome.com/paper/post-name-here
For silent mapping, remove
R=301
from[R=301,L]
.