HostGator Web Hosting Help

How to Setup Multiple Domains Pointing to the Same Directory

Summary

It is possible to have multiple domains point to the same site or to a directory on your site. To do this simply assign both Addon Domains to the same directory (folder).

Primary, Addon and Parked Domains

The primary domain on your account will always be pointed directly to the public_html directory. As you assign additional domains to your account, you can assign them as either addon or parked domains.

An addon domain allows you to specify a directory inside of public_html which the domain will point to. A parked domain will point directly to public_html the same way your primary domain does. For a more detailed description of addon and parked domains, please see Parked Domains vs. Addon Domains

When assigning a domain as an addon domain, you are allowed to use the same directory as another addon domain. This will result in both addon domains pointing to the same folder and website content.

Assigning Two Domains To One Folder

  1. Login to your HostGator Control Panel
  2. Click the Domain Manager tab.
  3. Under Shortcuts click the link Assign a domain to your cPanel account
  4. Choose if you will assign a domain name already associated with your account, or assign a new domain name to your account.
  5. Verify ownership of the domain name, there are three ways this can be done:
    • Name Servers: Update your Name Servers to ns1.HostGator.sg and ns2.HostGator.sg
    • Create HTML Page: Create an HTML page on your existing host containing the text provided.
    • EPP Code: This will not transfer your domain name, but use the EPP code to verify ownership.
  6. Choose an Addon Directory
  7. Choose a Subdomain
    This subdomain is required for cPanel. You will still be able to access your domain name directly.
  8. Click the Add Domain button at the bottom of the page to assign the domain.
  9. Once complete you should see the domain is listed in the domain manager tab.




  10. Was this resource helpful?

    Did this resolve your issue?


    Please add any other comments or suggestions about this content:





    Recommended Help Content

    I do not want to see addon.maindomain.com. How do I do that?
    Knowledgebase Article 323,287 views tags: accessible addon directory domain folders hidden htaccess inaccessible primary secondary

    This article will explain how to un-assign a domain name from your account.
    Knowledgebase Article 400,207 views tags: delete domain domains park parked remove unassign unpark

    You need two things to have a successful website and professional email: a domain registration and a hosting account.
    Knowledgebase Article 290,170 views tags: dns domain domains nameservers servers

    Related Help Content

    How do I make a sub directory (or sub folder) act as the public_html for your main domain?
    Knowledgebase Article 1,081,692 views tags: Drupal domain htaccess joomla wordpress

    What is the difference between parked domains and addon domains?
    Knowledgebase Article 433,419 views tags: add addon domain park parked

    What are parked domains?
    Knowledgebase Article 398,562 views tags: domain parked

    I would like to view the statistics for my website.
    Knowledgebase Article 344,801 views tags: addon domain enable hits set setup statistics stats subdomain visitors web

    What is Domain Name Pricing Structure?
    Knowledgebase Article 482,527 views tags: domain price pricing

    The WHOIS database shows my personal information for my .us domain names. How do I get privacy for the .us domain?
    Knowledgebase Article 296,416 views tags: change domain extension privacy private whois

    There are multiple reasons why a domain transfer may fail. This article explains several reasons why your transfer may be unsuccessful and what you can do to fix it.
    Knowledgebase Article 227,710 views tags: domain transfer

    How do I setup an addon domain or parked domain in my hosting account?
    Knowledgebase Article 895,389 views tags: addon domains parked