Multisite with sub-domains on Bluehost used to work, not anymore
-
Hello!
I have installed a multisite WordPress on Bluehost a couple of years ago (WordPress 3.8.1).
A few months ago, secondary site in example.mydomain.com stopped working (either because of a wordpress update, or because of some change at bluehost), and instead started redirecting to mydomain.com/wp-signup.php?new=example
I added
define( 'NOBLOGREDIRECT', 'https://mydomain.com' );
to my wp-config… now it redirects to the home page of the primary website rather than the new user page, but still, I am not able to access the secondary site at example.mydomain.comThe wildcard subdomain I originally set up in bluehost is still there.
These are the the multisite settings from my wp-config:
/* Multisite */ define('WP_ALLOW_MULTISITE', true); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', true); define('DOMAIN_CURRENT_SITE', 'mydomain.com'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); define( 'NOBLOGREDIRECT', 'mydomain.com' );
and this is my .htaccess:
# Use PHP5.4 as default AddHandler application/x-httpd-php54 .php # BEGIN WordPress RewriteEngine On 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] # END WordPress
I also tried adding:
RewriteCond %{HTTP_HOST} ^mydomain.com RewriteRule (.*) https://www.mydomain.com/$1 [R=301,L]
as suggested elsewhere in the forum, but to no avail.
Any suggestion warmly welcome. I should perhaps stress again that the multisite did work correctly, and it stopped working because of a WordPress update or change of practice on the side of Bluehost… no settings have been manually changed.
Thank you for your support.
- The topic ‘Multisite with sub-domains on Bluehost used to work, not anymore’ is closed to new replies.