I have a WordPress website and it has almost 22,000 blog posts. It has been running with good SEO for the past 6 years. The contents are scattered in almost all social media and backlinked in a lot of websites. I also have data in Google Analytics that I would like to preserve.
I'm planning to start a fresh news aggregator site at the base directory of the domain. I want to move the old blog contents to the subdirectory i.e.
/blog. I want to run the same old blog in it without affecting the SEO.
I tried implementing 301 redirects in .htaccess, but they are not working the way I want. This is my blog URL pattern
/2015/01/10/post-title/ and I tried with this 301 redirection code in .htaccess:
Redirect 301 / http://www.example.com/blog
However, it is redirecting all URLs of the aggregator site which I'm currently running under www directory.