^/blog/* is not a valid regular expression. It should be ^/blog/.*
Thanks John – that would make a difference
Sorry – should have asked one other question. I’m basically trying to decommission a site. The problem is, it’s the main domain on a multisite install, so, I still need to get into wp-admin and need things like backups to run…. I can get the various public pages to redirect using the “^/blob/.*” approach, however, the one I haven’t figured out is the redirecting of the homepage. Anything I can do there?
The homepage is / and can be redirected too.
And has been. Thank you very much John. Truly appreciate it.
Hello John – me again π
So, I’d done the homepage redirect but that seems to cause issues with Admin. Today I was checking to see if BackWPUp was running and there were no new S3 backup files. I then tried to get into wp-admin and it was redirecting me to the domain I’d redirected the ‘/’ to. I ended up having to go through phpMyAdmin to disable that particular redirect.
I basically have a multisite that was set up on a subdomain. The client wants that site to be shut down. I’m trying to redirect it to the ‘wwww’ subdomain. I’ve got all the various blogs and pages redirecting fine with the regex process your plugin supports. What remains is the homepage, however, when I redirect that one it’s not a happy camper. Any thoughts?
Thanks in advance.
Redirects just don’t cut it unless there’s a Domain Name to point the redirect to.
WordPress needs to know the domain name for its redirect engine. And the Hosting Control Panel often needs an address to work with to know where to point that domain.
What you really need to do is to go into the site editor and set that first or primary site to a domain or a subdomain under your control that is pointed at your multisite’s IP address via DNS.
You’ll also need to make sure that domain points to the proper directory in your hosting control panel if your CP requires that. Most do!
You may also need to rename the old domain to the new using a search and replace plugin or your PHPMyAdmin.
The documentation for this is slightly sketchy except that many web hosts have documented this for their services as it does occur quite often.
Also, there is nothing wrong with having a subdomain pointed at your network (the multisite). I sometimes use NOC as the machine name in a subdomain for my networks. NOC stands for Network Operations Center which is rarely used for anything but a Network admin panel or some such page/site… and it looks cool!
Five-minute job.
Thanks John – I like that last suggestion. I’d not thought of that. Is it really that easy to flip the main network site to a subdomain? That would simplify the redirect of the current subdomain. I’ll look into that. Thanks!