We have a WordPress site, which contains posts and pages. Now we moved posts into sub domain but we kept pages into root domain. Only Posts has .html
extension and there is no difference in the URL for Posts & Pages.
Sample Post: www.mydomain.com/sample-posts.html
need to redirect with blog.mydomain.com/sample-posts.html
.
Sample Page: www.mydomain.com/sample-pages
How to redirect only posts in to sub domain?