OK, here’s what I would like to do. I had to move a blog to the root directory of a site and everything works great. But, I want to make sure that if someone saved a link to a page in the old blog directory they will be redirected to the correct page on the new directory.
Example:
Original location:
tld.com/blog/someblogpost/
or
tld.com/blog/someblogpost/somepage.php
New location:
tld.com/someblogpost/
or
tld.com/someblogpost/somepage.php
I can get everything from the old /blog/ directory to root directory, i.e. home page using a 301 redirect. I can also do it for individual pages, but I want it to redirect so essentially the only thing removed from the address is the /blog/ directory, without having to write a line of code for every page. How can this be done?
Thanks for the help!