I ran into an issue on Hostgator today whereby I could not get my sub-domains working in a fresh WordPress multi-site installation.

mydomain.com was working fine, but subsite.mydomain.com was displaying the default Hostgator page.

The issue was that my wildcard sub-domain was pointing to the “/public_html” document root. When I changed that to “/public_html/mydomain.com” everything worked fine.

How to make wildcard domains work with WordPress multi-site on Hostgator

(click image to enlarge) How to make wildcard domains work with WordPress multi-site on Hostgator

I hope this post saves someone in this world from a headache! 🙂

Thanks, Shawn!

1 Comment

  1. Raymonn on February 22, 2012 at 10:29 pm

    Duuuuuuuuuuudddddddddeeeee!!!! Thanks so much! I seriously was going crazy about this. I have a deadline and I was about to go bizerkers if I wasn’t able to solve this.

    Thanks a ton!