Multisite WordPress Install With Subdomains on HostGator Shared Hosting

WordPress multisite is something similar to blogs option, meaning you can enable a function for users to register to your site and create their own blogs. This can be easily done when installing a self hosted WordPress with multisite option is enabled. The way users can have their blogs can be or by using subdomains and the format will be http://username

Important Things You Might Not Know!

By allowing users to create their own blogs some of them might add "trash" content to teir blogs and since the last Google Panda update the whole domain can be penalized by Google if the blog format is To avoid this it is more then recommended to use subdomains for the blogs so Google will penalize only the subdomain if the content is duplicate, a link farm, etc. The format you should use is http://username and this can be achieved also if having shared HostGator account!

How to: Multisite WordPress Install With Subdomains on HostGator Shared Hosting

Step 1:

Login to your HostGator cPanel account ( or and create a subdomain called: *
HostGator Subdomain
Please note that this is an important step! By doing this you will set your HostGator account for allowing users to create subdomains using WordPress.

Step 2:

We assume you have a WordPerss installed already on your main domain and now all you need to do is edit the wp-config.php file and add this line of code right before the line "/* That's all, stop editing! Happy blogging. */":

Step 3:

Now login to your WordPress dashboard ( and go to Tools - Network tab and follow the setup instructions. You can now select subdomains for your sites by using a HostGator shared account.

That's it! Your WordPress multisite enabled by using subdomains on a shared HostGator hosting account is ready and you can get traffic by third party bloggers but also you main site is safe!

Author: Stefan I

I love creating / tweaking WordPress themes and plugins. Father of a beautiful daughter, living in Bucharest. Glad to see you dropping by!

16 thoughts on “Multisite WordPress Install With Subdomains on HostGator Shared Hosting

  1. FYI: I've tried for a couple of days to do a multisite installation on Hostgator per your instructions. It always created an error that said site could not be found as soon as I pasted define( 'MULTISITE', true ); into my wp-config file. When looking for directions on another site I found the correct code to be define('WP_ALLOW_MULTISITE', true);. Pasting this line rather than yours works fine for me.

  2. I have been using Direct Admin for long, I have tried to set this MU up in my shared hosting. But it has never been succeeded. I am not sure why.

    I am now looking at Hatchling Plan, and I have also seen many sites are talking about hostgator, which can also use Baby plan to do the WordPress MU tricks. But none of them has even mentioned about the Hatchling plan at all.

    My questions are:
    1) Can Hatchling plan do the Multisite functioning?
    2) why is my Directadmin with a wildcard control not working properly?

    Thank you


  3. I have done the above things and my WP install creates the sub-directories without a problem, but it is not showing me my network sites. Instead it is redirecting me to my main website on the server. I did change the wildcard to redirect to the child site (/public_html/

  4. Hi, I had the same problem as Luke, but what you need to do is instead of pasting the code in to the WP-Config file you need to type it in manually. Then it will work for you.

  5. I am setting up a trial multi-site. I am sure that these instructions will fix the problem for me, but I wanted to point out to others that are still having issues *** it takes several hours for the changes to propagate **** so don't expect this to work immediately.

    I hope this helps.

  6. OK so I have tried this and it didn't quite work with an addon domain. The steps above put an A record into the DNS table. It took a day to propogate then I was redirected to a subdomain of the main domain, rather than of my addon domain.

    I think that the trick is to add a CNAME record. So I have tried that and am waiting for it to propogate, I expect it to take longer more like 72 hours.

  7. Wouldn't this be very slow for the visitors? Most shared hosts are pretty slow to begin with, so wouldn't multiple sites with databases, etc. on the same account slow things down a lot?

  8. The only issue I have ever had on Hostgator is that my account would not install WordPress one day. I went to install it on a domain and it just wouldn't do it. Other than that I have never had an issue. Thanks for the writeup!

  9. I tried this setup and failed miserably, maybe it works for some designers, for host gator i used the same steps but once you go to tools etc and steps prior that are done,
    however ther code for htaccess and wpconfig were as below and they worked


    define('WP_DEBUG', false);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', '');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    /* That's all, stop editing! Happy blogging. */

    ---- htaccess

    # Stop spam attack logins and comments
    ErrorDocument 403 '403'

    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]
    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

Share Your Thoughts

Your email address will not be published. Required fields are marked *