This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here

Skip to main content

Just Host 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 Just Host 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.Justhost.com and ns2.Justhost.com
    • 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 338,198 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 416,819 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 319,995 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,099,048 views tags: Drupal domain htaccess joomla wordpress

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

    What are parked domains?
    Knowledgebase Article 413,330 views tags: domain parked

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

    What is Domain Name Pricing Structure?
    Knowledgebase Article 503,404 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 311,935 views tags: change domain extension privacy private whois

    How to setup name servers for multiple cPanel accounts.
    Knowledgebase Article 281,721 views tags: accounts custom dedicated multi multiple nameservers server servers

    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 246,521 views tags: domain transfer

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.