Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

One web site, multiple domains on external DNS

Discussion in 'Bind/DNS/Nameserver' started by kallanp, Aug 30, 2013.

  1. kallanp

    kallanp Member

    Joined:
    Jul 13, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I am setting up a number of web sites each of which are accessed by multiple domains on the server. In all cases, the DNS for each domain is external and will always be so.

    So using the example "mydomain.com" in place of an actual domain name in the question below:-

    I have set up a web site where with a primary domain www.mydomain.com. This works fine.

    I now need to point www.mydomain.co.uk to this web site, using a Google friendly 301-permanent redirect. I know how to set up the redirect in .htaccess, and I configure the external DNS to point to the IP address of the server, but the problem I have is how do I point www.mydomain.co.uk to the specific www.mydomain.com web site using WHM/CPanel? Other posts I have read suggest using parked domains, but it will not let me do this because the DNS for the domains concerned is external.

    Kallan
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You can add these additional domain names as Addon domains to the account. Then, use the "Redirects" feature in cPanel to redirect the domain names to the URL of your choosing.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kallanp

    kallanp Member

    Joined:
    Jul 13, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you for that - it worked fine and I have the redirect in place.

    However, I created the addon domain using the same user name as the primary domain. It warned me that the user already existed, but let me do it anyway. What would happen to the user if I deleted the addon domain? Would it delete the user as well - something that I do not want it to do? Should I always use separate user names for addon domains even when I know they will not host separate content?

    Kallan
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Creating an addon domain name does not create an actual username on the system. It simply creates a username that is used as the subdomain and for FTP access. Deleting the addon domain name will not delete content from the primary account.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice