• agc1234

    (@agc1234)


    My original WordPress network installation was / suffix sub folders. Cpanel is set up for *. wildcard sub domains. I found instructions for changing to prefix sub-domains at-
    http://codex.wordpress.org/Create_A_Network#Switching_between_subdomains_and_subfolders
    I modified the .htaccess and wp-config.php as suggested.

    This has resolved the issue of altering the page on the dashboard to allow creating prefix sub-domains instead of suffix. However, when I create a sub-domain, I get no error messages, I get confirmatory emails but no sub-domain is actually created in Cpanel. Can you help please?
    Hosted on Siteground.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Nicholas

    (@nsideras)

    Cpanel is set up for *. wildcard sub domains.

    Because of the wildcard subdomain setting, you will never see a DNS/cpanel entry for a new WordPress subdomain. This is a good thing.

    What happens when you try to load one of the subdomains that you created? Does your browser give you an error, or does it load a WordPress error?

    Thread Starter agc1234

    (@agc1234)

    In Network Admin I have two sites i.e. my main site and the new sub domain. When I ‘visit’ the site (from the network dashboard) nothing happens.

    In Site Admin I only have the primary site.

    If I try to load the sub domain using the browser I get the database error- ‘Error establishing a database connection’

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Are you running any plugins? Some are known to cause that issue.

    Thread Starter agc1234

    (@agc1234)

    Disabled all plugins. Problem remains.

    Feel that this is a simple correction on either wp-config or htaccess

    Could someone confirm that these are the ones in /public_html/wp-config.php and /public_html/.htaccess?

    Here are the contents of the .htaccess file-
    # BEGIN WordPress
    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]
    # END WordPress

    Feel that this is a simple correction on either wp-config or htaccess

    No, the wildcard subdomains work of the DNS records (above that you input in cpanel)

    And also apache settings.

    In other words, if the server is not set up for it, it will never work.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Multi-site sub domains’ is closed to new replies.