So for the past two hours I have been trying to redirect my old blog posts to my new website. Problem was that it was not just a redirection of the whole site hollenzoodesigns.com, I JUST wanted the blog posts that are in the formate year/month/day/posttitle. I had some close calls with some good code. And was able to just redirect a post if I wanted. I tried a few plugins but nothing seem to just forward just the blog posts. Till I finally found this post —–>>>> So thanks Matt Thommes your code just made my day!!!
Code to place in .htaccess file
Need to redirect just blog in the formate year/month/day/blogtitle
RewriteRule ^([0-9]+)/([0-9]+)/([0-9]+)/(.+)$ http://newsite.com/archive/$1/$2/$3/$4 [R=301,L]
Need to redirect just one post
Redirect 301 /pageorposttitle/ http://yournewsite.com/pageorposttitle/
Another Great link can be found here:
Redirection
Leave a Reply