Support » Multisite » [Resolved] Subdomain multi user setup not working

[Resolved] Subdomain multi user setup not working

  • Hi,

    I want to install WordPress 3.0 from scratch, then create a network.

    I followed all the steps outlined here: http://codex.wordpress.org/Create_A_Network

    1) I installed WordPress 3.0 from scratch in the root folder of example.com.

    2) I edited the wp-config.php to allow the multisite feature.

    3) I installed the network inside the Wp admin, I chose subdomain setup.

    4) I added the wildcard DNS in cpanel: I added this subdomain: *.example.com.

    5) I created the blogs.dir directory under /wp-content/, thend added the required lines into wp-config.php and .htaccess.

    Now I go to Super Admin -> Sites -> Add new -> something.example.com.

    But after that if I go to something.example.com, I see only the default cpanel welcome page. something.example.com/wp-admin triggers 404 error.

    What am I doing wrong?

    Here is my example.com/.htaccess file:

    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]

    I added this into example.com/wp-config.php:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'example.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    In cpanel, in the subdomains area, I can see the *.example.com subdomain in the list, the document root of *.example.com is /public_html.

    If I go to anything.example.com, I always see the cpanel default page created by Hostgator (a welcome page), and in the address bar of the browser, I see the anything.example.com domain.

    The wordpress blog on http://www.example.com works fine.

    If I remove the *.example.com subdomain, then I get 404 error if I go to anything.example.com.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    Is this an add-on domain?
    Did you talk to Hostgator about wildcard support? Because there’s a step needed on their end. I *think* they do it automatically for the main domain of an account.

    Thanks a lot!

    Yes, it was an addon domain, too, that was the problem. It was added also as *.example.com and as addon domain, I deleted the addon domain, now it works, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Subdomain multi user setup not working’ is closed to new replies.
Skip to toolbar