How to 301 redirect all pages of root site to a new subdirectory
-
I have tried searching for the answer to this in Google and here 600 ways and am not finding my exact situation and I don’t have much experience with 301 redirect.
Details, bullet-pointed:
–I have a site installed at https://www.mysite.com.
–I have built a new redesign of this site in a subdirectory of https://www.mysite.com.
–The old site was accessible at https://www.mysite.com. The new site will be accessed through a new domain name, https://www.mynewsite.com.
–The site was long established and I don’t want to lose SEO benefits of the old site, and, there are likely links out there to posts on the old site.How do I do an .htaccess 301 redirect of ALL pages of the old site (not just home URL to new home URL)? I did find a way using RedirectMatch, however, since the old site is the ROOT site, I cannot specify a directory, and I get an infinite loop error.
I hope that was enough detail, any help GREATLY appreciated.
Kym
- The topic ‘How to 301 redirect all pages of root site to a new subdirectory’ is closed to new replies.