When You Are Moving WordPress To A New Domain And Forgot To Change Domain Name In Dashboard Settings

General procedure of migrating WordPress to a  new server on a new domain is to backup MySQL database and your website root directory (public_html) then change domain name to new one on Dashboard -> Settings -> General in the text fields for WordPress Address (URL) & Site Address (URL). This tutorial explains the solution of the problem which comes when you accidently change the domain name or you forgot changing your domain name in admin area dashboard;s General settings page.

It is possible to change your WordPress site URL manually in WordPress configuration file i.e., wp-config.php file present in root directory of your site.

All you have to do is paste the following given code changing “example.com” to your new website address:


This hardcodes the vales in your website itself.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.