MultiSite Domain Not Logging In
-
Hi there,
OK, like everybody else here, I am trying to setup a multi-site by domain (so, like https://www.primary.com and https://www.secondary.com). What I did was I setup the subdomain network settings with my .htaccess reading:
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L]
and my wp-config.php reading:
define('WP_ALLOW_MULTISITE', true); define('MULTISITE', true ); define('SUBDOMAIN_INSTALL', true ); $base = '/'; define('DOMAIN_CURRENT_SITE', 'www.primary.com' ); define('PATH_CURRENT_SITE', '/' ); define('SITE_ID_CURRENT_SITE', 1 ); define('BLOG_ID_CURRENT_SITE', 1 );
Then I create the other site, setup my CNAME to accept https://www.secondary.com, and changed the site’s domain to https://www.secondary.com.
Now, I can hit both sites without a problem. However, if I try logging via https://www.secondary.com/wp-login.php, I get redirected to the same login screen but with the URL https://www.secondary.com/wp-login.php?redirect_to=http%3A%2F%2Fwww.secondary.com%2Fwp-admin%2F&reauth=1.
I tried using the recommendations with the sunrise stuff too. But that didn’t seem to help at all.
Any words of wisdom here?
Thanks,
Alex
- The topic ‘MultiSite Domain Not Logging In’ is closed to new replies.