• Hi! The main site works fine and subdomains can be created from it without any problem but the URL of the created subdomains are empty. The subdomain URL opens fine but without showing any content in it rather than CGI-bin folder. Have tried to reinstall WP several times but all in vain.

    Kindly assist, I am using Cpanel.

    Herein below are the important part of the config:-
    /*Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true);

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘example.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);
    /* That’s all, stop editing! Happy blogging. */

    Herein below are the content of htaccess:-
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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]
    </IfModule>

    # END WordPress

    Kindly assist.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Your web server is probably looking at the subdomain and passing it to a default directory it created when you added the subdomain. You’ll need to go into CPanel and tell the subdomain to look to the WordPress directory instead.

    Thread Starter mashayo

    (@mashayo)

    Kindly direct me on how to tell the subdomain to look to the WordPress directory instead.

    Thread Starter mashayo

    (@mashayo)

    I am still waiting. Please assist

    On cPanel where
    Domain -> Subdomains
    which path is setup for the subdomain?
    to what folder it point to?

    Thread Starter mashayo

    (@mashayo)

    which path is setup for the subdomain? (*.mydomain.info)
    to what folder it point to? ( i don’t know how to check this)

    do not know if this is the problem, another could be that
    Apache Handlers are configured to parse php files?
    But i assume that this is not your problem.

    (*.mydomain.info)

    may we are not on same line, or this mean nothing have been setup to me.
    I assume you about the above, you have to setup the subdomain on
    domain -> Add domain, if not already done.
    Then on path where public_html is, you should have a folder, where the subdomain will reside.
    Normally cPanel setup all correctly when you create the subdomain, and in this folder you’ve to put your wp files that will be served when subdomain requests to the server done.
    Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP MULTISITE – SUBDOMAINS GETTING CREATED BUT SITE NOT SHOWING’ is closed to new replies.