Lots of people who host on Godaddy using WordPress have had trouble enabling sub domains with Multi-Sites and unfortunately the official Godaddy help FAQ for Multi-Sites is a bit limited, here’s another official resource from Godaddy on the WordPress Multi User plugin but neither one completely covers the topic. For the solution and a few helpful tips on how to get Multi-Sites working on a Deluxe Godaddy hosting account keep reading.
There are four parts to this solution (three if you aren’t hosting with deluxe and have wordpress in the root directory)
- Purchase a static IP address for your hosting account if you don’t already have one. This costs just a few bucks a month and is necessary to enable wildcard sub domains which we will get to in step three. Purchase it first because it takes a while to propagate.
- Enable WordPress Multi-Sites Network option with WordPress 3.0 or greater, do this by adding the following line to your wp-config.php file then following the instructions in your WordPress admin area under Tools > Network. Note that this code can go anywhere in the wp-config file but I chose to put it just below define(‘DB_COLLATE’, ”); because it fit nicely there:
/** Enable Multi-Site options in WordPress. */
- In the domain manager area of Godaddy click the URL you are working with and click the Total DNS Control link under Total DNS Control. Once the page loads click Add New A Record and enter the following:
for Host Name type an asterisk, like this: *
for Points To Ip Address paste in your new static IP Address (you can get this from your hosting control panel under Account Summary)
Everything should work at this point if all of your WordPress files are in the root directory of your server. If you’re like me and are using deluxe hosting with domains setup in folders then you need to take one more step. If you don’t take this last step, any sub domain sites you create in WordPress using Multi-Sites will go to the root directory of your hosting space and users will probably see the “coming soon” Godaddy page or an error page. And so, you will need to manually add sub domains to the URL within Godaddy in addition to within the WordPress interface. This can be done two ways through the hosting account domains section or manually using the same Total DNS Control section as follows.
- Option 1: Under My Domains choose the URL you want to add a sub domain to (to match what you create in WordPress). In the domain manager under Total DNS choose Add New A Record then for Host Name enter the sub domain you want (ie. enter sub if you want to achieve sub.mydomain.com). For Points To IP Address enter your static IP (Which should be right there from step three above, with the asterisk).
- Option 2: In your Hosting Control Center click the Your Domains button and then click the Add link for the domain you are working with. Now enter the sub domain you want and navigate to the folder where your site is installed (this is how you help WordPress send users to your site files and not just the empty root directory of your hosting space.
Option 1 Screenshot:
Option 2 Screenshots:
For more great information on WordPress Multi-Sites check out this video overview.