• Resolved uglybear

    (@uglybear)


    Am pretty new to WordPress but love exploring the possibilities of it. However, I have encountered a problem setting up two subdomains of a site (www.cdptest.net – no content added as yet).

    In Network Admin, clicking on dashboard for either of the subdomains (basftest.cdptest.net / whitesales.cdptest.net) causes an internal server error. Clicking on the dashboard for the main site works OK.

    I’m pretty sure I’ve set everything up correctly as it seems to be almost working, however I can’t locate the problem. I’ve also read things about increasing memory, replacing the .htaccess file, etc., but bearing in mind no content has been added to these sites, I don’t think this will have any effect.

    The .htaccess file is as follows:

    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php
    
    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]

    The host is Bluehost – could the issue be with them? Any ideas would be much appreciated as I am at a loss as to what to do next.

    Many thanks,

    Phil

Viewing 10 replies - 1 through 10 (of 10 total)
  • The host is Bluehost – could the issue be with them?

    Yes. Subdomains work on the basis of wildcard subdomains being set up on the server – as outlined in the instructions.
    https://codex.www.ads-software.com/Create_A_Network#Step_2:_Setting_Wildcard_Subdomains

    Bluehost does not officially support wildcard subdomains.

    Is this the .htaccess in your root install’s folder?

    If so, and if using multisite, it should look something like this:

    #BEGIN WordPress
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'www.yourdomain.com'; );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    # END WordPress

    If you want to use subfolders, set ‘SUBDOMAIN_INSTALL’ to false, otherwise, if you have a wildcard subdomain and want to use subdomains, set it to true.

    This may vary depending on your setup. I’d suggest reviewing: https://codex.www.ads-software.com/Create_A_Network

    Edit: Just as a note, BlueHost should, supposedly, actually support wildcard subdomains now. I heard of this about a week or so ago. You may want do double-check with them on it though as I have not confirmed it.

    As other users in the forums have reported, it’s there but not *officially* supported.

    Their site says otherwise: https://my.bluehost.com/cgi/help/527

    I know they haven’t officially supported it for a while so I’m guessing this is a fairly new thing.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Huzzah! They changed!

    huzzah indeed!

    Thread Starter uglybear

    (@uglybear)

    Problem solved, the .htaccess file needed tweaking. And yes, Bluehost does support wildcards.

    Thanks all for your comments.

    uglybear, what tweaking did you need to make to the .htaccess file?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    millerpm – Please make a new topic.

    Thread Starter uglybear

    (@uglybear)

    @ millerpm

    One of the helpful people at Bluehost amended to:

    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php
    
    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]
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Subdomains not set up properly?’ is closed to new replies.