WordPress is an amazing content management system which is used by many people to run their blogs and websites, if you are a person who runs a personal blog or a company website who wants to change their domain name which is being used for their website or blog then today I will show you the procedure which you have to follow to change the domain name.
We come across a number of situations in which we have to change quite things related to our blogs or websites like web hosting, WordPress theme or the WordPress plugin(s) which we are using or running on our sites.
Everything can be changed which is related to the WordPress website but you have to do it correctly with the right method and steps. If you something goes wrong because of the slight mistake you do then it can take your whole blog down which is not good at all.
Recently I have published a WordPress guide on Blogging Champs which explains how to fix 404 error on WordPress posts and pages. This error (404 on Posts and Pages) comes if someone tries to tweak their WordPress installation and somethings goes wrong with the tweak they do.
I mentioned about that previously published guide because I want to present an example in front of you to show how a slight mistake done by someone can mess everything and take a WordPress website down.
And if your website goes down then you will earn nothing out of it until you take your website up again. So I strongly recommend you to download a full backup of your website and MySQL database before you follow this guide.
If you don’t know how to download a full backup of your website then I have some guides published on my website which will help you and they are linked below.
In case you are not using Bluehost or Godaddy as your web hosting provider, even then you can refer the guide and get an idea about how you can download the backup because the process is almost similar with all paid web hosting providers and free web hosting providers.
And follow this link to read how you can backup MySQL database.
Now as you are reading further part of this guide I assume that you have downloaded your whole WordPress installation using any of the FTP clients like FileZilla, Cyberduck or any other FTP client along with your MySQL database.
We can change the domain name of WordPress website by two methods and they are,
- Changing domain name through WordPress dashboard.
- And using phpMyAdmin.
I will be mentioning both the methods in this guide you can follow the one which you good for you.
Procedure to Change Domain Name of WordPress Website
So now let us get started with this guide and learn both the methods to change the domain name.
Changing domain name via WordPress dashboard.
I would like to start with the easy method first and after this, we will learn the second method which is a bit complicated as we have to access PHP MyAdmin.
The first thing which you have to do is log in to your WordPress dashboard by entering your username and password.
Once you successfully login into your Administrator account click on Settings and then on General, you can refer the image which is embedded below.
All the general WordPress settings will be displayed in front of you which includes your website title, tagline etc. you have to find WordPress Address (URL) and Site Address (URL) and replace that with your new domain name. Once you change it scroll down and click on Save Changes.
But before you scroll down and click on Save Changes wait and read this carefully.
|You are about to change the URL or domain name of your WordPress website (installation) which means until you upload your files to the server to which your new domain name points you will face downtime.|
You can upload your WordPress directory to your new server or change the DNS of your new domain and make it point to your current server where your WordPress directory is present.
Changing domain name via phpMyAdmin.
Now let’s learn how to change the domain name using PHP MyAdmin, the first thing you have to do is log into your cPanel and look for phpMyAdmin and click on that within few second the system will redirect you to the phpMyAdmin of your web hosting account.
After that, you will have to select the MySQL database which is associated with the WordPress website in case you have hosted multiple websites on the same server.
But if you have only one domain name hosted on the server then you can select the one which is available or in some web hosts, it will be automatically selected.
Once you have selected the MySQL Database now click on wp_options refer the image embedded above for more clarity.
You will see many options when you click on wp_options, now look for siteurl under option_name and click on edit, I highly recommend you to refer the image above because you should not edit any other value.
Now you will see that new options will come in front of you and will allow you to edit your siteurl, you will find the old domain name replace it with the new one and one click on Go.
I have already told you that until you upload your files on the server where your new domain is hosted or change DNS of your new domain you will face downtime.
What we just did?
We have made all the required changes to change the domain name of your WordPress installation. But to make your website run smoothly you have to update the DNS of your new domain name or upload everything to the server where your new domain name is hosted.
Which WordPress installation to upload?
If you have hosted your new domain name somewhere else then you have to download the WordPress installation whose domain we have just changed and upload it to the new server.
So this was how you can change the domain name of your WordPress website, I hope you are clear with everything I have mentioned in this guide. This is just the procedure to change the domain name, your work is not yet done you have to move your files manually to your new server or update DNS of your new domain and make it point to your present server.
I have tried my best to include everything in this guide, but if you have any kind of questions then you can leave your comment below. And don’t forget to subscribe to Blogging Champs if you liked this guide, I will deliver more like this one directly to your inbox.