Since cPanel version 138, you can rename a domain directly in cPanel. This lets you replace a domain on your hosting account with a new domain name in a single step, without removing the old domain and setting everything up again.
When a domain is renamed, cPanel moves its email accounts, sub-domains and DNS records to the new domain name, updates the related configuration, and requests a new free SSL certificate through AutoSSL. There is an important exception for email accounts if the new domain previously existed on your account, which is explained below.
This article explains which domains can be renamed, what changes during a rename, how to prepare, and what you need to check afterwards.
Which Domains Can Be Renamed
You can rename the following types of domains:
- The main (primary) domain of your cPanel account
- Addon domains
- Alias (parked) domains
Sub-domains cannot be renamed. To change a sub-domain, create the new sub-domain and remove the old one instead. Sub-domains of a renamed domain are moved automatically, for example blog.old-domain.com becomes blog.new-domain.com.
We explain the different domain types in a separate article: The different types of domains (Main Domain, Add-on Domains, Alias Domains, Sub-Domains)
The new domain name must be different from the current one, and it must not already exist on the server, whether on your account or any other account. Only one rename can run at a time. If you want to rename your main domain to a domain that already exists on your account as an addon or alias domain, see the section "Renaming the Main Domain" below.
If you do not see the Rename link described below, your account may be on a server that does not yet run cPanel version 138 or newer. In this case, please open a support ticket and we will help you with the change.
What Changes When You Rename a Domain
cPanel automatically:
- Renames the domain's email accounts, together with their passwords and stored emails. For example,
info@old-domain.combecomesinfo@new-domain.com. This does not apply if the new domain previously existed on your account (see "Email Accounts" below). - Moves the domain's sub-domains to the new domain name
- Updates FTP and Web Disk usernames that include the domain. For example,
test@old-domain.combecomestest@new-domain.com. - Moves the domain's DNS records, including custom records, to a DNS zone for the new domain name with the same values. For example, a custom record
custom1.old-domain.combecomescustom1.new-domain.com. - Updates the web server configuration of the domain
- Requests a new SSL certificate for the new domain name through AutoSSL
The following do not change:
- Your cPanel username and password. The username stays the same even if it is based on the old domain name (see the section "Changing the cPanel Username" below)
- The document root (directory) of the domain. The main domain's document root always remains
public_html. For addon domains, see the section "Renaming an Addon Domain" below. - Database names and database users, as these are based on your cPanel username, not your domain name
- The content of your website, including any links or URLs saved in it
Important: once the rename is complete, the old domain name is no longer set up on your hosting account. Visitors to the old domain will no longer see your website, and emails sent to the old email addresses will no longer be delivered. If you want to keep the old domain working, see the section "Keeping the Old Domain Working" further below.
Email Accounts
If the new domain has never been set up on your account before, the email accounts of the old domain are renamed to the new domain, together with their passwords and stored emails. For example, info@old-domain.com becomes info@new-domain.com. Your email users only need to update the email address in their email apps, as the passwords remain the same.
However, if the new domain previously existed on your account, for example as an addon or alias domain that you removed before the rename, the email accounts are not renamed if email data of that domain is still on your account. This is usually the case if the domain had email accounts. In our tests:
-
The earlier email accounts of the new domain reappear, with their previous passwords and stored emails, provided that the email data of that domain is still on your account.
-
The email accounts of the old domain, including their passwords and stored emails, remain on your account. However, they are no longer shown in cPanel and can no longer be used, unless you add the old domain back to your account. In this case, they reappear as before.
-
If you want to keep the email accounts of the old domain, add the old domain back immediately after the rename, as email accounts of domains that no longer exist on your account may be removed permanently during the next cPanel update.
After the rename, please check the email accounts in cPanel under Email > Email Accounts to confirm which email accounts the new domain has.
Before You Start
-
Make sure the new domain is registered and that you can manage its nameservers or DNS records.
-
Take a backup of your website files, databases and email accounts.
-
Make a note of any custom DNS records of the domain, such as records for an external email provider, Microsoft 365 or Google Workspace, or verification records for third-party services. cPanel moves the DNS records to the new domain, but you should check afterwards whether they are still correct for the new domain and if any records need to be adjusted or removed. For example, verification records of third-party services usually only apply to the old domain.
-
Make a list of the email accounts, email forwarders and other email settings of the domain, so that you can check them after the rename. Let your email users know that their email address will change, and that they will need to update it in their email apps.
-
If the new domain previously existed on your account, please read the section "Email Accounts" above, as the email accounts are not renamed in this case.
-
Decide whether you want to keep the old domain. If you do, add it back to your account right after the rename.
-
If possible, carry out the rename during low-traffic hours, as the website may be unavailable until the DNS of the new domain is working.
How to Rename a Domain
- Log in to your cPanel account (see here how).
- Navigate to the Domains category and go to the Domains page.
- Under the Actions column, click on the Manage button next to the domain that you'd like to rename.
- Under Update the Domain, click on the Rename link next to the domain name:

- Enter the new domain name in the New Domain Name input field, for example
new-domain.com. Do not includewww.orhttps://. - Read the notice and tick the checkbox "I understand that renaming this domain will affect services that use the domain.":

- Click on the Rename Domain button.
- Please allow a few moments for the domain to be renamed. During this time, please do not leave the page. Once the rename is complete, a success message is shown and the page refreshes with the new domain name.
After Renaming the Domain
1. Point the New Domain to Our Servers
The new domain only works once its DNS points to our servers:
-
If you use our nameservers, set the nameservers of the new domain at your domain registrar to the same nameservers that your old domain used. If the new domain is registered with us, we can help you with this.
-
If you manage your DNS with an external DNS provider such as Cloudflare, create the DNS records for the new domain with that provider. This includes the website records (A/AAAA and CNAME) and the email records (MX, SPF, DKIM and DMARC). You can find the DNS records in cPanel under Domains > Zone Editor.
DNS changes can take up to 24-48 hours to take effect worldwide, although this is usually much faster.
2. Check the SSL Certificate
AutoSSL can only issue the SSL certificate once the new domain points to our servers. Until then, visitors may see a certificate warning when opening the website via https://. You can check the certificate status in cPanel under Security > SSL/TLS Certificates.
3. Update Your Website
Renaming the domain does not change the content of your website. Most websites and content management systems store their own URL, which must be updated to the new domain name:
-
For WordPress, update the site URL and replace the old domain in the database. See How to Update the URL of a WordPress Site in cPanel and How to Update the URL and Absolute Paths in a WordPress Database.
-
For other applications, check the configuration files and any hard-coded links.
-
Update external services that use your domain name, such as payment gateways, Google Search Console, analytics or API integrations.
For addon domains, the website files remain in the same directory as before. If you also want to change the directory, see the section "Renaming an Addon Domain" below.
4. Check Email and Update Your Email Apps
-
Check the email accounts of the new domain in cPanel under Email > Email Accounts, and check your email forwarders, filters and autoresponders.
-
Update every email app (Outlook, Apple Mail, Thunderbird, mobile apps, etc.) with the new email address as the username. If the mail server name in your email app contains the old domain name, update it as well. Webmail is also accessed with the new email address.
-
If the email accounts were not renamed because the new domain previously existed on your account, create any missing email accounts for the new domain. If you need emails from the old email accounts, add the old domain back to your account (see the section "Keeping the Old Domain Working" below), set up both the old and new account in your email app via IMAP, and move the emails from the old account to the new account.
FTP and Web Disk usernames that contained the old domain name now use the new domain name (for example test@new-domain.com), so please update the username in your FTP or Web Disk app.
5. Let Us Know If You Renamed the Main Domain
If you renamed the main domain of your account, please open a support ticket and tell us the old and new domain names, so that we can update your hosting service in our client area as well. This is not required for addon or alias domains.
6. Test Everything
-
Open the website and test important functions such as contact forms and checkouts
-
Send and receive a test email with each important email address
-
Check that any custom DNS records you noted before the rename are still in place
Keeping the Old Domain Working
If you still own the old domain and want visitors and emails to reach you at the new domain, you can add the old domain back to your account. Ideally, do this right after the rename (see "Email Accounts" above):
- Add the old domain as an addon domain or alias domain, as described in How to add/remove domains on your cPanel hosting account.
- Set up a redirect from the old domain to the new domain in cPanel under Domains > Redirects. A permanent (301) redirect helps search engines transfer your rankings to the new domain.
- Create email forwarders in cPanel under Email > Forwarders for the old email addresses that should still receive emails, and forward them to the new addresses. If the email accounts were not renamed because the new domain previously existed on your account, the previous email accounts of the old domain reappear instead, with their passwords and stored emails.
Renaming an Addon Domain
For addon domains, the Manage page also shows a New Document Root field, which defines the directory where the website files of the domain are stored.
Renaming an addon domain does not change its document root. For example, if old-domain.com is renamed to new-domain.com, the website is still loaded from the old-domain.com directory. This works without any further changes, so changing the directory is optional.
If you would like the directory name to match the new domain name, please note that it is not possible to rename the domain and change the document root at the same time. Please follow these steps instead:
- Rename the addon domain as described in the section "How to Rename a Domain" above, and leave the New Document Root field unchanged:

- Once the rename is complete, enter the new directory in the New Document Root field on the same page and click on the Update button:

- Move the website files from the old directory to the new directory. This can be done with the File Manager in cPanel (recommended) or through FTP/SFTP. Changing the document root only changes where the web server looks for the files, and does not move them. Your website will not load until the files have been moved, so please move them straight after updating the document root.
- Update any absolute paths in the website's configuration or database, as the website is now stored in a different directory. For WordPress, see How to Update the URL and Absolute Paths in a WordPress Database.
Renaming the Main Domain
If you need to replace your main domain and the new main domain already exists on your account as an addon or alias domain, you can still use the rename feature, but you must remove the addon or alias domain and its sub-domains first. Removing the domain deletes its DNS zone, so make a note of its custom DNS records beforehand.
After the rename, the new main domain has the DNS records of the old main domain, so you should consider resetting its DNS zone in cPanel under Domains > Zone Editor (click on Manage next to the domain, then Actions > Reset DNS Zone) and re-add the noted records. If it was an addon domain, you will also need to move its website files into the public_html directory.
Renaming the addon or alias domain itself does not make it the main domain. Our article How to Change the Main (Primary) Domain of a cPanel Account explains the steps for this scenario in detail.
After renaming the main domain, please let us know via a support ticket, so that we can update the domain of your hosting service in our client area as well.
Changing the cPanel Username
Renaming a domain never changes your cPanel username, even if the username was created from the old domain name. The username is only used to log in and in some internal names, such as database names, and is not visible to your website visitors.
If you would also like to change your cPanel username, please contact our support team. A username change is not always possible, but we will review your request and let you know.
Related Articles
If you are unsure whether renaming is the right option for your domain, or if you need help, please contact our technical support team.
Updated by SP on 29/10/2026
