WordPress Multisite keeps redirecting subsite as if it doesn’t exist
-
I have a WPMU site that was set up ages ago, before domain mapping was built-in. I had previously used WPMU-DEV’s Domain Mapping plugin, but recently it has started causing critical errors. So, since the latest WP has domain mapping built-in, I’ve disabled and deleted the domain mapping plugin.
I’ve added the correct custom domains to my subsites, however, every single subsite now redirects as if they don’t exist. The URL is redirected to:
https://www.myrootdomain.com/wp-signup.php?new=mysubsite.com
How can I fix this?
I have the following in wp-config.php:
define( 'MULTISITE', true); define( 'WP_ALLOW_MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', true ); define( 'DOMAIN_CURRENT_SITE', 'www.myrootdomain.com'); define( 'PATH_CURRENT_SITE', '/'); define( 'SITE_ID_CURRENT_SITE', 1); define( 'BLOG_ID_CURRENT_SITE', 1);
and in my htaccess file, I have the default suggested by WP:
RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*\.php)$ $1 [L] RewriteRule . index.php [L]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WordPress Multisite keeps redirecting subsite as if it doesn’t exist’ is closed to new replies.