Do I need to change my primary domain?

Asked by:
HubFans / n/a Points
2017-12-13 12:58 pm EST
Website Troubleshooting
Our primary domain is currently We've got several websites, such as and, which are located in folders under the public_html folder. We've recently started using for a website in its own right (previously it was just forwarding to, and it now appears that people can view any of our websites by typing in followed by the folder name, eg. Is there any way to avoid this? Do I need to change the primary domain to a domain that is not used for a website? Thanks for your help!

To ask this user for more information, please first login.

To submit an answer, please login.



16,831 Points
2017-12-13 1:39 pm EST

Sorry for the problem with your addon domains being accessed from the primary domain. This is a result of the files for the addon domains being located under your primary domain folder. The easiest way to get around this is to move the folders of your add-on domains to the HOME/username folder in your account (username would be the username from your account, e.g. userg5). You would have to change the locations of the folders of your addon domains in the Addon domains interface in cPanel. Once you have the folders moved and the location changed in cPanel, then those websites will not be accessible the way they are now. Basically, you are changing the root folder for each of your addon domains. Hope that helps!

If you have any further questions or comments, please let us know.

Arnel C.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.