Good news! Plesk makes it very straightforward to complete the actual change or rename of your domain name.
In some cases we’ve had to change domain names because there was simply a typo in the originally created account, in others it’s because the www. was included during creation when it shouldn’t have been, and finally other times it’s simply because of a change in focus mandated a new company/brand name.
One thing to bear in mind is that changing your domain in Plesk doesn’t change your registration of the name. This means that if the change you’re looking to complete is to alter it to a new name altogether, you’ll need to register the new domain name and ensure its name servers match those for your hosting plan along with the changes described below.
Option A: Simple Name Change
- This change will change all email accounts you have configured in Plesk to use the new domain. This means any mail apps you have configured to log in and sync your mail will need their usernames updated by replacing the old domain with the new one.
- This change will change all subdomains to use the new domain as well. So if you’ve got mysub.domain.com and you change domain.com to newdomain.com, the subdomain automatically changes to mysub.newdomain.com.
Change The Domain in Plesk
- Login to Plesk
- Find your domain name in the list and click the “Hosting Settings” link underneath
- At the very top, to the right of “Domain Name” change the domain to the new value
- If you have an SSL certificate activated on the domain, be sure to deselect it under the Security section on this page by choosing “Not Selected” from the Certificate drop down.
- Click the OK button to save your changes. This might take a few minutes for Plesk to make the domain change.
Create Domain Alias (optional)
If you want the old domain to redirect to the new one, choose “Add Domain Alias” in Plesk, and enter the old domain. Select the destination to be the newly renamed domain. By default all necessary boxes are checked. Mail aliasing will ensure that any emails sent to email@example.com will be automatically delivered to firstname.lastname@example.org. This is true for all email addresses configured at newdomain.com, which inherently must be the same addresses as which were configured for olddomain.com since you just changed it.
Create New SSL Certificate (optional)
If you had an SSL certificate for the old domain name, it will not match the new domain and so it won’t function properly after the domain change. If it’s a commercial/paid certificate, you will need to purchase a new SSL certificate that matches the new domain, and install it manually. If it’s a Let’s Encrypt free certificate, you’ll need to tell Plesk to generate a new one. Start by logging in to Plesk, then:
- If you did not deselect the certificate when changing your domain name in Plesk, you’ll need to do that now (step 4 under “Change The Domain in Plesk” above).
- Under the new domain in Plesk, Choose ‘SSL Certificates’ then remove the Let’s Encrypt certificate that matches the old domain.
- Once removed, under the new domain, click the “Let’s Encrypt” button and proceed with installing a new certificate. If you added the old domain as an alias, you should get the option to include the alias when creating the new certificate. It’s recommended to cover both domains when the option is available.
Using a web app like WordPress?
Changing the domain to a completely new domain will probably cause problems within the web app. It will need to have its configuration files and/or config in the database updated to reflect the new domain name.
If you’re using our 1-click web apps utility (Installatron) to manage your web app like WordPress, you’ll need to inform Installatron of the domain change. When you do this, it will automatically update the database and configuration of the changes so you don’t have to do it manually. Here’s how:
- Within Plesk, click 1-click web apps (or Installatron)
- Click the wrench icon beside the web app installed to the domain you changed. You might then see a warning about exactly this issue — that Installatron can’t find your web app
- Choose the Files & Tables tab
- Look for the editable field that has your domain name in it and change it to the new domain.
- Press the button at the bottom of the page to save your changes.
Not using 1-click web apps? Manual updates required.
If you’re not using Installatron, you’ll need to make these changes manually. Here’s a comprehensive guide on how to do that with WordPress. To get to phpMyAdmin as described in that article, log in to Plesk then choose “Databases” under the site you wish to adjust, followed by “phpMyAdmin” under the corresponding database.
You can probably find similar solutions for other content management systems with a quick Google search. If you do not find such a guide for your web app, do a global search for all instances of the old URL in the database and replace it with the new URL. Then do the same for all files, paying specific attention to config files.
Option B: Add new domain, remove existing
- This option will not work if the existing domain name is your primary domain. You cannot remove your primary domain.
- This option will also not work if you have our Carbon or Helium hosting plan as you can only host one domain (which therefore must be your primary domain).
- This option will not move your emails.
For those who can do this, here’s how:
- Login to Plesk
- Choose the Add Domain button and enter your new domain
- Move your website
- If you have static content (ex: html files), you can simply use the Plesk File Manager to select all files in the domain web root for the existing domain, then move them to the web root for the new domain
- If you’re using WordPress or any other app in our 1-click web apps manager, you can use this guide to clone your site from the old domain to the new one.
- Remove the old domain in Plesk. This option will not be available if it’s your primary domain.