How to Change Domain Name in WordPress?

A short tutorial that shows you the simple steps to change domain name for a wordpress website.

Change Domain Name for WordPress Website

Step 1: Login to Wordpress admin panel by entering your username and password.
Step 2:In wordpress admin panel, go to Settings -> General.
Wpdomain1
Step 3: Now, replace the old domain name with the new domain name in both the Word Press Address URL and Site Address URL. Click on Save Changes for updating the changes.
Wpdomain2
Step 4: Log in to Filezila by entering your username, Password, and Port fields.
Wpdomain3
Step 5: Find the public_html folder public_html public_html and locate the wp-config.php file in it. Now, right click the file and click on View/Edit option to open the text editor.
Wpdomain4
Step 6: Using text editor, update your wp-config.php file with the new domain name as given below.
define('WP_HOME','http://newdomainname.com');
define('WP_SITEURL','http://newdomainname.com');
Step 7: Go to public_html and select .htaccess file. Here, add the below given code and save the changes. Incase if you donot have a .htaccess file, then you can create it.
#Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ http://www.newdomainname.com/$1 [R=301,L]
Step 8: You have successfully changed the domain name for your wordpress website.