Redirect entire multisite instance
-
Hello everyone.
I have what I feel like should be a simple issue/fix. We have a large multi-site instance that’s been around since like 2011. We are migrating the site and all data to a new host (AWS). The root domain will change as part of this work. Simply, our plan is to stand up the new instance, import all the data, test, then apply a 301 redirect from the old domain to the new one. Thing is, all the guides I can find for redirecting using .htaccess specify that I would need to specify the old and new links individually in .htaccess – The plugins I’ve found just allow me to add the redirects in the UI, but I would still need to include every specific URL to redirect from>to. On a multi-site instance like this it’s thousands of lines. I’m trying to see if I can redirect the entire site in .htaccess somehow.
In short, I want to take my current multisite instance – we’ll call it https://blog and redirect any and all links to https://blog.mydomain.com. Our permalink structure for our instance is “https://blog/site” if that matters. We have 70 subsites, so I need to ensure anyone visiting the old links (for example https://blog/gallery/…) are redirected to the new domain and the path data is preserved (so if they browse to https://blog/gallery/… they should be redirected to https://blog.mydomain.com/gallery/…).
Thanks for taking the time to help!
The page I need help with: [log in to see the link]
- The topic ‘Redirect entire multisite instance’ is closed to new replies.