Hostgator Addon Domain Redirecting to Primary Domain Subdirectory
<p>This is for a client so I won't share exact domains but the problem is as follows..</p>

<p>I took over development of a website from a prior developer.</p>

<p>The hosting is Hostgator Business.</p>

<p>The primary domain is primary.com.
There is an addon domain addon.com.</p>

<p>The primary domain document root is /home1/username/public_html.
The addon's document root is /home1/username/addon.com.</p>

<p>www.addon.com had a WordPress installation which the developer had edited instead of using plugins to achieve his goals. The site also needed a complete redesign so I felt it logical to simply wipe the installation and replace it.</p>

<p>So, I deleted all of the WordPress files and uploaded a new copy of WordPress from wordpress.org/latest.tar.gz</p>

<p>Prior to deleting the old installation, the domain loaded files from it's document root perfectly.</p>

<p>After uploading the new installation instead of resolving to addon.com it is instead resolving to primary.com/addon.com</p>

<p>I've never seen this happen before so I'm lost.
There's no errors in any available logs.</p>

<p>All file permissions are correct.. I've triple-checked.</p>

<p>I've tried deleting all files and creating simple index.php and index.html files to see if it would access them ... it doesn't.</p>

<p>This happens in each browser I use on Windows and Linux.</p>

<p>I don't understand it because all I did was swap out the old WP install for a new one.</p>

<p>I went and re-uploaded the old WordPress installation so everything is 100% how it was but it is still going to primary.com/addon.com instead of addon.com.</p>

<p>Has anyone faced this issue before? I usually use Bluehost but even when I've used Hostgator in the past I've never seen this happen.</p>

<p>I double-checked the addon domain settings as well as anything else I could think of and everything appears normal.</p>

<p>I even deleted the addon domain and re-added it with the document root of /home1/username/addon.com and it still goes to primary.com/addon.com in the browser.</p>

<p>I submitted a ticket with Hostgator but they have not replied yet.</p>

<p>I'm sorry if this is long. This is my first time asking for help on here and I wanted to be sure I included everything I could.</p>