• Resolved mbohea

    (@mbohea)


    I have an existing main site installed in /public_html which I have upgraded to Multisite (using subdomains).

    I followed the setup instructions, added a wildcard subdomain record to my zone file in Crucial and created my first subdomain.

    The main site still works perfectly but accessing the subdomain results in a default server page e.g. https://www.example.com/cgi-sys/defaultwebpage.cgi.

    If I try to access the subdomain’s Dashboard e.g. test.example.com/wp-admin I get a 404 error.

    My .htaccess file looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The main site still works perfectly but accessing the subdomain results in a default server page e.g. https://www.example.com/cgi-sys/defaultwebpage.cgi.

    It’s not WP, it’s your subdomains being set up wrong.

    Assuming example.com is installed in the /public_html/ folder of your server, your subdomains should point back at that folder.

    By default, a new subdomain is pointing to /public_html/subdomainname/ you see. You have to change that.

    Thread Starter mbohea

    (@mbohea)

    Got ya.

    Crucial Paradigm came back with a similar response –

    We do support WordPress Multisites in our shared/reseller servers.

    From the server configuration side we do the following to make your WordPress Multisites to work.

    ==
    1. Add wildcard DNS entry for the domain in which you are installing WordPress Multisite
    2. Add the wild card subdomain entry in the ‘httpd.conf’ file as given below:

    ServerAlias *.domain.com https://www.domain.com
    ==

    Then you can install WordPress Multisite and configure it as required. Please check the following link on how to install and configure WordPress Multisite.

    I’ll see how I get on today and post my findings.

    Thanks for your help.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yeah you just did it out of order ??

    Have them set up the wildcard, should fix the rest.

    Thread Starter mbohea

    (@mbohea)

    Yep, all sorted. Worked like a charm.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Subdomains result in 404 or default server page’ is closed to new replies.