Adding a domain alias that shares an existing cPanel website

A domain alias serves an existing website under an additional hostname. It is useful for a related domain you own, but it is different from a redirect: visitors can remain on the alias unless you deliberately redirect them.

Check access and requirements

Register the domain and confirm your hosting plan permits another domain. Decide whether the alias should show the same files or redirect to a preferred canonical address. Prepare DNS and SSL for every hostname visitors will use.

01 Add a domain alias that shares an existing cPanel website

  1. Open Domains > Create a New Domain in current cPanel. Enter the additional domain without an https prefix or a page path.
  2. Retain Share document root when the alias should display the primary domain’s files. Review the path before creating the domain.
  3. If you need to share another site’s folder instead, confirm the supported document-root arrangement with the account’s domain controls rather than selecting an unrelated directory.
  4. Point the alias’s public DNS to the hosting service and include the hostname in the applicable certificate process.
  5. Configure a deliberate redirect if one address should be preferred. Also check that the application accepts the alias and generates the intended URLs.

Confirm the expected result

Visit the alias over HTTPS and inspect the displayed content and final address. Test links and login behaviour because some applications enforce one configured site URL.

Why does the alias show another site or redirect to the main domain?

If the alias shows a different site, compare document roots and DNS before changing files. If the application redirects it, review the application’s canonical-domain settings. Do not duplicate the website directory merely to create an alias unless you intentionally need a separate site.

Sources and further reading

  • 0 Users Found This Useful
  • cpanel-whm, domains-dns
Was this answer helpful?

Related Articles

Removing a domain alias from cPanel

Removing an alias stops that hostname being configured as an additional entry to the website on...

Adding a separate website domain in cPanel

Add a separate website domain when another registered name should have its own files rather...

Removing a separate website domain from cPanel

Remove an additional hosted domain when its website is being retired or moved away. Removing...

Redirecting an additional cPanel domain to another website

Use a redirect when visitors to an additional domain should be sent to another URL. A redirect...

Redirecting a cPanel subdomain to an external URL

A subdomain redirect is useful when a hostname such as help.example.com should send visitors to...