Wordpress

How to Change WordPress Domain Name?

How to Change WordPress Domain name Regardlessly or arbitrarily for a variety of reasons?

The search for the answer to the problem is started. Companies can make many changes in their domains in order to make strategic moves in their branding process. In addition, due to the lack of a domain with low traffic or a domain extension that will appeal to the target audience, it often causes Domain change.

In this article, the readers who are looking for an answer to the question of how to change the WordPress domain or website URL, I explained in detail all the necessary steps for the domain name change process.

Here are some points to discuss for changing the website domain name in WordPress.

WordPress Domain Name Change

WordPress domain change is not as difficult as you might think, it is just a little bit tricky task. On the other hand, you need to make various changes to the PHP codes found in order for your website to work. If WordPress domain migration process is not done carefully and properly, your website will be down or crashed.

For this reason, before starting the process of changing the WordPress site address, you can reduce the possibility of damages to your site if you do the steps I will give completely below.

Take Backup of your Updated Website

If you have backed up the most up-to-date version of your site, any problems you may encounter during WordPress domain change can help you recover your website immediately and dependably. There are several Plugins to backup your site, you can get them with a plugin or with a file manager.

Access via FTP or CPanel

You can access your website files via the c-panel provided by your hosting provider or via FTP.

Before performing the WordPress site migration process, you need to determine the most suitable and branded domain name for your company.

Buy a New Domain

I would say it would be beneficial for you not to rush the domain determination process. Because the domain name you choose is a domain name that can support you in the branding process of your company. When choosing a domain name for your company, you can see whether the domain name is used or not by using the domain name query tools of companies such as Godaddy. You can also see other alternatives that you can use.

If you have purchased the domain name you have chosen for your company, we can proceed with the change.

Change Website URL from WordPress Setting

Another step required for the WordPress domain migration process is to add the purchased domain name to the general settings in the WordPress management panel.

Go to the section where you will add your new domain name by going to Administration Panel > Settings > General Settings. Write your old domain name in the WordPress address section and the new domain name you purchased in the Site address section. Save your changes after the process.

It may interest you:  How to remove “Wordpress Category”?

However, our process is not ended, you should take the steps below to reach your website before typing in the new domain name.

Update Your Site’s Required Files

It is essential to make several changes in the wp-config.php file in order to save the changes you made in the admin panel of your website. You have to use FTP or c-panel for this purpose.

To update wp-config.php file, you need to follow the steps I have given below;

  • First, you need to access the Files option via the panel or FTP and find the File manager from there.
  • Continue by selecting the domain name and saying Go To File Manager,
  • Then, select the “edit” option to find the “public_html” file among the files under the domain name you have selected and edit the “wp-config.php” file,

define (‘WP_HOME’, ‘http://olddomain.com’);

define (‘WP_SITEURL’, ‘http://olddomain.com’);

  • Your old website address is written in the “http://olddomain.com” field in the code snippets I have given above. These addresses

define (‘WP_HOME’, ‘http://newdomain.com’);

define (‘WP_SITEURL’, ‘http://newdomain.com’);

  • Save the changes you made in the “wp-config.php” file and exit.

There is no change when you do these operations from FTP. You can even do it more quickly via FTP. Because you directly access your site files.

Update Website’s Database

If you have come here successfully, then you have a database of your site, which is the next step, most of the domain change will be finished.

Necessary steps to repair and update your site database;

  1. Follow the path Panel> Databases> phpMyAdmin.
  2. Then select the database where your WordPress files are found and click on phpMyAdmin again.
  3. Enter the “wp-options” file from the page that appears.
  4. You can change the directory where your old URL is located with your new URL by saying Edit site URL and home options on the screen.

Save your changes and exit. You have updated the database for your new domain name.

  • Permanently Migrate from Old Domain to New Domain

There is one last step to complete the WordPress domain change process. If you have come so far without any problems, I recommend you to move on to this step. The last step of the domain migration process is to redirect to URLs. Thanks to the 301 redirect, your SEO work on your site will not go to waste, and your new domain name will be indexed and ranked quickly.

I would say that it is useful to keep your old domain address active for a while so that you can make 301 redirects. It will be easier for people who visit your site to find your new addresses. In addition, search engines can recognize you more easily.

Yes, in order to make 301 redirects, you need to follow the steps I have given below;

Go to Panel> Files> File Manager,

Then, on the screen that appears, select your old domain and click Go To File Manager,

Then find the “.htaccess” folder in the “public_html” file, which is among the files,

 #Options + FollowSymLinks

RewriteEngine on

RewriteRule ^ (. *) $ Http://oldsite.com/$1 [R = 301, L]

Replace http://exportname.com/ in the code snippet above with http://newsitename.com/ and register it. I explained 301 Redirects in more detail in my article on the link, you can also do it by reading it.

It may interest you:  What are 2021 Wordpress SEO Plugins?

Thus, I answered the question of How to Change WordPress Domains. If you get stuck while following the steps, you can let me know from my social media accounts or contact section.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

takipçi satın al instagram takipçi satın al instagram beğeni satın al twitter takipçi satın al youtube abone satın al facebook takipçi satın al takipci33.com