Dec 22, 2025
Domantas G.
10min Read
As businesses start offering new products or services, or entering new markets, changing the business strategy might become inevitable. This includes aligning your domain name with your brand value.
In addition to providing a readable address, a domain name is the unique address for a website and it also represents your brand. With that in mind, the domain should reflect your brand’s goals and missions.
Fortunately, changing a domain name is a straightforward process. This article will show you how to do so for a WordPress site.
For the most part, the steps to change the WordPress domain are simple, but some tasks will require you to tweak your site’s PHP code. Thus, before we start, we recommend completing these three preliminary tasks.
Back up your website before making any big changes. Doing so will allow you to get your site back whenever an error occurs. Otherwise, you risk losing all your data and having to start from scratch.
A WordPress website consists of two main components – website files and databases. Hence, before transferring your site content onto the new domain, execute a full backup of your entire site.
Convenient one-click restore and backup systems that let you back up your WordPress site via the hosting dashboard are available for Hostinger users with these services:
Alternatively, several WordPress plugins enable you to perform a backup with just a few clicks. Some of the most popular choices are VaultPress, UpdraftPlus, and BackWPup.

If you want to change the WordPress domain, you’ll need access to your hosting account dashboard – this is where you will add your new domain address. Hostinger users can log into the hPanel dashboard and head to the Domain section for domain management.
Alternatively, use an FTP client to upload your site backup. To do so, you will need to configure FileZilla Client beforehand. Once everything is set, you can upload and manage larger files remotely from a local computer.
Make sure to do proper research before buying a new domain name, from finding a credible hosting registrar to deciding a suitable extension for your site address. Many people are using .com domain names for their website names. A good rule of thumb is to make a list of potential domain names and check their availability via a domain name finder.
If you’re looking to start your online presence cost-effectively, you might want to explore options for a free domain name. This can be a great way to get started without upfront costs.
Now, if you have all the prerequisites ready, it’s time to take action. The following section will walk you through the easy methods of changing your WordPress site address.
Now, let’s move on to the process of changing your WordPress site’s domain name. We have divided the process into six steps, and here’s a quick overview:
The first step is to secure the new domain name for your new WordPress website.
Set up a new WordPress website with the new domain name.
Copy your website files, including the WordPress core files, from the backup you made earlier from the old domain’s site.
Set the site’s URL to the new domain name. You can do this either from the WordPress admin dashboard, the wp-config file, or the database.
Ensure that the new website follows the same URL structure as the old one to prevent broken permalinks and 404 errors.
Prevent losing traffic and backlinks by creating a 301 permanent redirection from the old domain to the new domain.
Let’s dive deeper into each step.
First, head to Hostinger’s domain checker and type in your preferred domain. You’ll find out if this option is available, and get some suggestions on alternative domain names as well as their costs.
Instantly check domain name availability.
If your desired domain name and its alternatives are already taken, try contacting the domain owner and negotiate a fair price for that particular domain. Use the domain lookup tool to find who owns the domain along with the owner’s information, such as phone number and email address.
However, if your desired domain address is available, simply add the domain to the cart, and proceed to check out.
During the checkout process, you will also need to specify the domain registration period. There are several registration periods, ranging from one to ten years. However, most domain registrars will require you to pay for at least one year.
At Hostinger, we offer up to a three-year registration period. If you purchase Hostinger’s annual Premium or Business hosting plans, you will get a free domain for the first year.
Proceed to click the Submit Secure Payment button to finalize your order.
Read our “How to Buy a Domain Name” guide for more detailed instructions.
The next step is adding the new domain name to your existing hosting plan. Below, we will go over the steps for both hPanel and cPanel.
Using hPanel
Wait until the website setup process is finished.
Using cPanel
Keep in mind that addon domains will not work unless you add the correct DNS records. One of the most efficient ways to look for DNS records is to use the nslookup commands.
Alternatively, you can use an online DNS checker to find different types of DNS records.
Moving all website content from your old site to the new domain is easy with the help of backup. Especially, when you don’t switch to a new hosting provider.
Download your backup file from the hosting dashboard or directly copy your old domain folder to the new one.
Below, we will walk you through the steps of moving your website content to a new domain via Hostinger’s File Manager. Before applying the following steps, ensure that your add on domain is successfully added to your account.
Alternatively, you can download your backup and upload it via the cPanel’s File Manager or an FTP client.
Important! If you are moving the website to another hosting, you will need to import the database and configure the database information in the wp-config.php file. Read our detailed instructions on how to move a WordPress site to a new server.
The next step in changing your WordPress address is to update the existing URL and site address. This helps provide a smooth user experience for your visitors and makes it easier for web crawlers to find and index content.
There are several options to do so, from accessing your WordPress admin dashboard to updating your WordPress database via phpMyAdmin. Let’s go over the methods one by one.
1. Use the WordPress Admin Dashboard
The first and most common method is to add your new address to the WordPress General Settings. This is the easiest method if you can access the WordPress admin dashboard.
To do that, go to Settings → General. Then, replace your current WordPress Address (URL) and Site Address (URL) with your new URL.
Ensure that both addresses match unless you’re setting a designated home page for your WordPress site. Once done, click Save Changes.
However, those fields might be grayed out due to set fixed values in your wp-config file. In this case, follow the steps in the section below.
2. Using the wp-config.php File
If you are moving your website and can’t access your WordPress dashboard, you can change the settings via the wp-config.php file.
This file is usually located under the root directory of your WordPress site – simply access it through the hPanel’s file manager. Alternatively, open it via FTP, SSH, or WP-CLI.
In this example, we will show you how to edit the wp-config.php file in the hPanel dashboard:
define('WP_HOME','https://domain.tld');
define('WP_SITEURL','https://domain.tld');If you prefer using an FTP client, the process will be almost identical. You’ll just need to use the FTP account credentials to access the site files.
3. From the Database Using phpMyAdmin
Another option to choose when changing your WordPress address URL is to directly edit the database in phpMyAdmin. To do so, follow these steps:
Now that you have changed your site address and URL, the next step is to update your URL structure. If you keep the same structure, the posts and pages might show the 404 error whenever visitors try to access them.
This error happens when the server cannot fetch requested posts or pages due to missing resources. Therefore, it is important to modify the site address URL structure to make your content accessible to your visitors.
There are several ways to reset your URL structure:
Reset Permalinks via the WordPress Dashboard
To do this, log in to the WordPress dashboard and go to Settings → Permalinks.
By default, WordPress uses the Plain permalink structure. However, this structure doesn’t contain any information about your content, making it the least ideal option for SEO.
Other URL structure options are as follow:
The post name option is arguably the best URL structure since it’s short and straightforward. However, feel free to choose the permalink structure as you need. By resetting broken permalinks in WordPress, the system will automatically redirect visitors from your old site to your new address.
Search and Replace
Another way to edit the WordPress URL structure is by using your database’s search and replace command. Replace the value carefully since these changes will be irreversible.
If you’re not comfortable with coding, perform this action is by using a plugin. We will show you how to do so with Better Search Replace.
Before we get into the steps, install the plugin. Now, let’s get started:
The final step when changing the WordPress domain is to create a 301 redirect – a URL redirection from your old domain to the new one. The redirect will carry over page ranking values, ensuring that your SEO efforts won’t be lost when moving to a new domain.
We recommend keeping your old domain active for a while. This will allow users not aware of the domain change to reach the site and help notify search engines about the redirection.
Let’s dive into the hPanel to edit the .htaccess file and create a 301 redirect:
#Options +FollowSymLinks RewriteEngine on RewriteRule ^(.*)$ http://yoursitename.com/$1 [R=301,L]
Similar to modifying wp-config.php, you can complete this step with an FTP client.
Generally, most businesses and companies stick to their initial domain name and build their marketing strategies around it. However, sometimes changing a domain name is necessary.
Here are the most common reasons:
No matter the reason, changing a domain name has its own pros and cons. For example, a domain change can decrease web traffic and lower page rankings.
This is because Google and other search engines will need time to crawl and index content on your new site address. As long as you implement the best WordPress SEO practices, you should be able to gain positions in the search engine result pages.
Do not postpone changing your domain name. The sooner you do this, the smaller the risk of losing your SEO values.
There could be many reasons to change the WordPress domain name. Luckily, WordPress provides built-in URL address settings. This functionality allows you to manually tweak the PHP code through a file manager or an FTP client to change your domain effectively.
There are a lot of steps involved when changing your WordPress domain. With the correct implementation, you won’t lose any SEO benefits either. Whichever method you end up using, we recommend following best SEO practices to ensure that your new domain will rank high on the SERPs.
What is WordPress Sidebar
How to Delete All Comments in WordPress
How to Embed a Video in WordPress
Guide to WordPress Security
How to Export WordPress Users
How to Setup WordPress Auto-Update
Guide to WordPress Private Pages and Posts
All of the tutorial content on this website is subject to Hostinger's rigorous editorial standards and values.
Comments
December 23 2017
Hi, really very helpful article i want to say thank you very much for sharing this types of the article please keep updating us. Thanks
April 02 2020
I followed the instruction, but when hit save changed after step 2, my site disappeared. When I go back, wordpress tells me I have no site. So sad.
April 21 2020
Chrispin, make sure you follow all the steps until the end to complete the process. If all is followed correctly, your site will be running smoothly!
August 15 2020
Is there any propagation on this? I tried every single step but my wordpress backoffice is not accessible. This is my second time and I will give it 24 hours or revert it. Are you sure this tutorial is up to date? Also tried in incognito window.
November 06 2020
Hey Julio. If your domain was already pointing correctly, you won't have 24 hours propagation. If it wasn't - you need to point it and wait up to 24 hours. If you are unsure if you've done the procedure right, drop our Customer Success team a message! :)
September 17 2020
This doesn't work for me. Both of my site show nothing now. And I cannot access wp-admin from both website.
November 11 2020
Hey there Timi. Please contact our Customer Success team, I am sure they will be able to guide you through.
June 13 2022
i have same problem, I cannot access wp-admin from both website
July 08 2022
Hey! If after changing your website's domain you're not able to access the WordPress Admin Dashboard, please contact our Customer Success team from your account and our team will help you resolve the issue! ?
September 18 2020
I was doing this on a local hosted Apache server and just for fun wanted to change my site from aaa.com to bbb.com. The first step, Wordpress Admin > Settings > General updated the mysql table wp_options for siteurl and home, so I didn't have to do that step. It also immediately did a refresh and as Chrispin stated, it appeared as if my site disappeared. That's because the wordpress software was trying to find the php pages in the directory called (my local apache server)/htdocs/bbb. I renamed /htdocs/aaa directory to /htdocs/bbb and magically all was well. (I still had references to aaa.com in menus but was able to edit afterwards.) Very simple and worked as stated, but my site was barely two pages.
November 10 2020
hi, after trying your blog, my site is missed, how to fix it
February 02 2021
Hi there! If you're having any issues, try checking with our Customer Success team ;)
July 12 2021
the file wp-config.php does`t contain the website link
September 16 2021
Hi there! If you haven't changed the URL of your website before, it's likely that wp-config.php won't have the WP_SITEURL and WP_HOME defined yet. No worries - just add the two lines to your file and save it. That will consequently change the URLs from your database.
July 18 2021
Thank you so much for this article. So helpful. I'm moving my site from .net to .com and now I know what to look for when it "disappears. I'm in that part now where nothing is showing but I see now that I missed one or 2 steps. Either changing the htdocs or adding the "define" lines in my configuration file. I did all the other steps and couldn't understand what was missing, until now!
August 07 2021
hello is it possible to buy and host the domain in a single shared hosting?
September 17 2021
Hi! Sure - just register the domain name you like and set it up with your Single plan! If you are not sure how to register a domain, feel free to read our beginner-friendly guide.
May 12 2022
Will it be safe to delete the old site, after coping it to the new domain? Will the database (now set for the new domain) remains unaffected?
May 12 2022
Hi Stela! Yes, it's safe to remove the site now, your database is connected to the control panel itself, so removing a domain will not remove your database :)
June 10 2022
I tried that but the file manager is not working properly.
July 08 2022
Hey! If you're having any issues with accessing your File Manager, please contact our Customer Success team from your account and our team will be able to help you resolve this issue! ?
June 13 2022
It is taking so long to move to completely transfer all content to your new WordPress address. I tried the whole days to move many times, now it is still working around half hours. could you please help me?
July 14 2022
Hey there! No need to worry! If you have encountered any issues with the moving procedure, feel free to contact our Customer Success team from your account, and the team will be there to assist you! ?
August 26 2022
Hi there, Followed all the steps but not all my images are loading, any ideas? Thanks, Allison
September 02 2022
Hi, Allison! If you recently changed the domain name of your WordPress site, this is because some of the images' URLs broke during the domain change. Nothing to worry about, as you can check out this article to learn how to fix broken URLs in WordPress ?
January 11 2024
There are 2 major issues with your instructions. 1) a number of options to make important changes include using the WordPress Dashboard. If I am in the middle of moving my site over (that's why I'm using these instructions), the site isn't functioning yet, so I CANNOT use my WordPress dashboard yet! The only one available is the old site files that i'm copying and moving. 2) you mention nothing about either duplicating or reconnecting the PHP database from the old site to the new. UGH.
January 24 2024
Hello there! Thank you for your attention. Your feedback helps us improve the article. We appreciate your input and are committed to delivering even better tutorials in the future. If you have any specific suggestions or topics you'd like us to cover, feel free to let us know ?
April 27 2024
Hi, I am a Hostinger customer and I've completed step 4, (changed the website URL in wordpress settings and wp-config file. I only found this article after doing that, so i am trying to start from step 1. However, when I try to add a new website, there is no option for me to skip and create an empty website? I asked the chat but it advised me against the alternative way of creating index.html. If I create an empty website and upload my files downloaded from updraft plus, what happens to the files that are currently hosted and pointing to the old domain name?
May 08 2024
Hey there! The new onboarding process doesn't have the "skip, I'll create my website from scratch" option anymore. However, you can still bypass certain steps by selecting the "Skip" button during the theme, plugin, and AI website generator selection process. This will essentially lead you to a blank WordPress site. Now, onto the second bit. If you upload your website backup files to an empty website, don't worry about the files currently hosted and pointing to the old domain name. They will remain intact unless you actively delete them. Think of it like having two separate sets of files stored in different locations. To ensure a smooth transition, it's advisable to set up a redirect from your old domain to the new one. This way, visitors who access your site through the old domain will automatically be directed to the new one, minimizing any disruptions ?