• 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)
  • > Subdomain.maindomain.com gives a 404, however if I type https://www.subdomain.maindomain.com

    That tells me that you did not setup subdomains correctly in DNS.

    Your WP and web server configs look correct.

    Thread Starter Kalisvaart

    (@kalisvaart)

    Thanks for getting back at me jkhongusc!

    I thought the DNS subdomains were setup correctly:

    digibastards.nl	A	-	109.72.85.122	     3600
    *.digibastards.nl	A	-	109.72.85.122	     3600
    digibastards.nl	AAAA	-	2a00:f10:10a:5:3:b43:80:2	3600
    *.digibastards.nl	AAAA	-	2a00:f10:10a:5:3:b43:80:2	3600

    Anything wrong in these settings?

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.