How to solve wordpress multisite subdomain error for hostgator

After a lot of trying, finally, I managed to set up a WordPress multisite to work on a HostGator server setup.

First, 
You need to add setup a wildcard subdomain from hostgator subdomain setup.
Go to subdomains and add one with just an asterisk(*).

To check if the wildcard setup is really working:  

If your domain is mydomain.com, then visit any random subdomain which is not assigned yet. For example: notAssigned.mydomain.com
If this subdomain redirects to your main domain, then your wildcard setup is ok. Otherwise, you have to manually edit the A record for the asterisk(*).
To do that go: Simple DNS Zone Editor
Add an A record to: *
You will find the address below of that page. The IP address or record (ex: 108.167.172.175) which is assigned to your main domain.
After adding this record, I think you will not find any error now. But in case do the wildcard checking again.

Two,
Add this into wp-config.php to enable multisite.
define('WP_ALLOW_MULTISITE', true);

Three,
Login to your WordPress dashboard and go to Tools>>Network (.com/wp-admin/network.php) You will then see the following type of instructions. Just follow the instruction.

Four,
I don't know. Your site should be ok now.

Next Post Previous Post
No Comment
Add Comment
comment url