How To Change Your Primary Domain

A primary domain is the first domain you’ve added to your SPanel account.

With an SPanel managed VPS, you can create as many different accounts with as many domain names as you want. If you want to start a new project, you can always set up a new account and get started in no time.

However, if you want to use the same files with a different domain, it makes sense to repurpose an existing account instead of creating a new one. This means changing the account’s main domain.

Here’s how to do it.

Changing the Main Domain of an SPanel Account

Swapping one main domain for another takes no more than a couple of minutes and is really easy. You need to bear in mind, however, that if the new domain is to work, it needs to be registered and pointed to your VPS. After that’s done, follow the steps below to change your SPanel account’s main domain.

STEP 1: Log into SPanel’s Admin Interface.

You will be managing one of your SPanel accounts, so the Admin Interface is where you need to go. The default login URL is [your server’s IP address]/spanel.

How To Change Your Primary Domain

STEP 2: Locate the account you want to modify.

On the homepage, you’ll see a list of all the SPanel accounts created on your VPS. The same list is also available on the Manage Accounts page available in the navigation panel on the left.

How To Change Your Primary Domain

Make sure you find the account you want to modify. To save time, you can also use the search functionality and look them up by a domain or a username.

STEP 3: Open the Actions Drop-Down and Select Change Domain.

Next to each account, there’s an Actions drop-down menu. Open it and select Change Domain.

How To Change Your Primary Domain

A popup appears asking you for the new domain. All you need to do is to enter it and click the Change button to apply the changes.

How To Change Your Primary Domain

By default, SPanel will assign the public_html directory as the document root for your new main domain.

Bear in mind that the change will wreak havoc with your existing subdomains, custom DNS settings, and email forwarders; so always proceed with caution.

Need Support?

If you need assistance changing your primary domain or have questions, reach out to our support, and we’ll be willing and available to help.

Was this helpful?

What’s your goal today?

1. Find the right Managed VPS solution

If you’re looking for industry-leading speed, ease of use and reliability Try ScalaHosting with an unconditional money-back guarantee.

2. Make your website lighting fast

We guarantee to make your WordPress site load in less than 2 seconds on a managed VPS with ScalaHosting or give your money back. Fill out the form, and we’ll be in touch.

Please enter a valid name
Please enter a valid website
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

3. Streamline your clients’ hosting experience

If you’re a web studio or development agency hosting more than 30 websites, schedule a call with Vlad, our co-founder and CTO, and see how we can deliver unmatched value to both your business and your clients.


Need a custom cluster or professional advice?

Book a meeting and get a free 30-minute consultation with Vlad, co-founder & CTO of Scala Hosting, who will help you select, design and build the right solution - from a single data center cluster to a multi-region & multi-datacenter high availability cluster with hundreds of servers.

Book a free consultation

4. Learn how to grow your website in 2023

An all-star team of SEO and web influencers are sharing their secret knowledge for the first time in years. Learn about the future of SEO, Web Design best practices and the secrets to getting the foundation for your website to thrive. Watch the exclusive webinar.

An Exclusive Insiders Look Behind The SEO and Web Development Curtain


Working in the web hosting industry for over 13 years, Rado has inevitably got some insight into the industry. A digital marketer by education, Rado is always putting himself in the client's shoes, trying to see what's best for THEM first. A man of the fine detail, you can often find him spending 10+ minutes wondering over a missing comma or slightly skewed design.