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.
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.
Step 4: Log in to Filezila by entering your username, Password, and Port fields.
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.
Step 6: Using text editor, update your wp-config.php file with the new domain name as given below.
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 ^(.*)$$1 [R=301,L]
Step 8: You have successfully changed the domain name for your wordpress website.