Search The Hostwinds Guides Knowledge Base

Changing cPanel Main Domain

Share This Article [TheChamp-Sharing]

Occasionally, your website will need to change the domain that it uses.  Whether because the business has grown and evolved, the project has changed, or a more appealing or marketable domain name has become available.  In these cases, your website’s cPanel needs to have the old domain swapped out and the new domain assigned to it.  Here at Hostwinds, we have designed a way to change the primary domain of your hosting service without the need for technical support assistance.  All you would need to do is follow these steps:

If you are changing your Primary Domain to be one of your current Addon Domains, this process will not work you will need to deleting the Addon Domain from cPanel > Domains > Addon Domains. If you require any assistance, please contact us via a Technical Support Ticket, or contact any of our LiveChat Agents

How to Change Your cPanel’s Primary Domain

Step 1: Login to your Hostwinds Client Area.

Step 2: In your Client Area, click on the Services dropdown menu, and then select My Services.

How to get to My Services in the Client Area

Step 3: Find the service you wish to change and select the Manage button next to it.

Step 4: Under the Actions section on the left side of the page, select the Change Domain option.

change hostwinds domain

Step 5:  Enter the new domain name in the form, and click on Change to save changes made.

If the domain change was successful, you will receive a Success message that your domain has been changed.

You can confirm the change was successful by logging into your cPanel account and checking the Primary Domain associated to the account in the General Information box on the top right side of the page.

Redirect cPanel Primary Domain

If your primary domain was an add on domain, you can move all of the files to the public_html folder for your primary domain.

You can also change the document root of the primary domain by adding the following to a .htaccess file in your public_html folder:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^$ [NC,OR]
RewriteCond %{HTTP_HOST} ^$
RewriteCond %{REQUEST_URI} !directory/
RewriteRule (.*) /directory/$1 [L]

Replace and directory above with your primary domain name and the folder or directory that your files exist in

Helpful Related Articles

Should you require any assistance or have any questions about changing your primary domain name for your hosting, please contact us via a Technical Support Ticket, or contact any of our LiveChat Agents, and they will be more than happy to assist you.