Skip to content

Change the primary domain, document root or remove a domain

Make a different domain the primary one, change which folder a domain serves, or delete a domain from a website.

What you can do

  • Make an addon domain or alias the website's primary domain
  • Change the document root of the primary domain, an addon domain or a subdomain
  • Delete an addon domain, subdomain or alias

What you cannot do

  • Delete the primary domain. The panel says "It's not possible to delete a primary domain" (Not available in the panel.) Instead: make another domain the primary first, or delete the whole website.
  • Change an alias's document root (Not available in the panel.) Instead: delete the alias and add the domain again as an addon domain.
  • Keep email addresses on a domain you delete. They are deleted with it (Not available in the panel.)

Open the website, select Domains, then open the menu at the end of a domain’s row. The menu offers Manage, Make primary (for addon domains and aliases) and Delete.

This is how you “rename” a website to a new domain.

  1. Add the new domain to the website as an addon domain or alias. See Add a domain to a website.
  2. In the Domains list, open the new domain’s menu and select Make primary.
  3. Read the confirmation. If the website runs WordPress, you can tick Run search and replace after change to update the old domain to the new one in the site’s content.
  4. Select Make primary.

Notes:

  • Your other domains are not automatically redirected to the new primary domain. Add a redirect if you want one. See Redirects.
  • The old primary domain stays on the website as an extra domain until you delete it.

The document root is the folder that holds a domain’s web pages. By default it is /public_html.

  1. Open the domain’s menu and select Manage.
  2. Under Document root, enter the new folder.
  3. Save the change.

The folder is inside the website’s home directory. Changing it does not move any files; move or upload your files into the new folder yourself.

  1. Open the domain’s menu and select Delete.
  2. Confirm. The window warns that the domain “and any associated email addresses will be deleted from your website”.

Deleting a domain does not delete the files in its folder.

Checked against Enhance 12.28.0 on 2026-12-01: tested directly in the panel.