Subsites not being created on new multisite installation

My primary domain is working fine after a new install of multisite, but the subsites give an error message when trying to view in the browser. I also can not get to their dashboards.

"This site can’t be reached
s1.wp-class.com’s server DNS address could not be found."

One mistake I made when setting up the multisite was I forgot to add the wildcard for the domain first (*.wp-class), so I went back later and added it after adding the code to the wp-con.php and .htaccess files.

Maybe I need to start all over? Please take a look. I have granted access.

Site: wp-class.com, s1.wp-class.com, s2.wp-class.com

Thanks, Joe.

  • Vaughan
    • Support/SLS MockingJay

    Hi Joe,

    Hope you're well?

    This does look like it's an issue with the wildcard subdomain.

    Can you check that you enter the wildcard correctly?

    *.wp-class.com
    not

    *.wp-class

    like in your OP.

    Could you also copy/paste me your wp-config.php & .htaccess (please remove the DB credentials before posting the wp-config.php

    Thanks

  • joejacobson
    • The Bug Hunter

    Hi Vaughan,

    Here is my .htaccess:

    # 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

    ---------------------------------------------------------------

    Here is the wp-config.php:

    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     *
     * For information on other constants that can be used for debugging,
     * visit the Codex.
     *
     * <a title=obito href=/profile/link>obito</a> https://codex.wordpress.org/Debugging_in_WordPress
     */
    define('WP_DEBUG', false);
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'wp-class.com');
    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');

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.