Multisite Subdomain returning 404, even with DNS Wildcard and Allowoverride ALL
-
I setup a multisite network but keep getting a 404 on my subdomain. The network admin and main site work fine.
Subdomain.maindomain.com gives a 404, however if I type https://www.subdomain.maindomain.com I do see the content, just without any styling. So there’s something not redirecting as it should i guess.
DNS Wildcard is setup, and httpd conf has Allow Override set to All (verified this with hosting party). I have successfully setup a multisite network with the same host before, so don’t understand what’s going on here. Below my settings:
Htaccess
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]
WP Config
/* Multisite */ define( 'WP_ALLOW_MULTISITE', true ); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', true); define('DOMAIN_CURRENT_SITE', 'digibastards.nl'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); /* That's all, stop editing! Happy blogging. */ /** Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');
Httpd Conf
vhost.conf: VirtualDocumentRoot /home/vhosting/g/vhost0063452/domains/digibastards.nl/htdocs/%1 vhost.conf: ServerName digibastards.nl vhost.conf: ServerAlias digibastards.nl *.digibastards.nl digibastards-nl.pcxtmp.nl *.digibastards-nl.pcxtmp.nl vhost.conf: <Directory /home/vhosting/g/vhost0063452/domains/digibastards.nl/htdocs>
Any help would be much appreciated!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Multisite Subdomain returning 404, even with DNS Wildcard and Allowoverride ALL’ is closed to new replies.