• I was impressed that WordPress stores my domain information in many places in the database. Every time I change the domain for my wordpess website I always worry that I forget to change the domain information in some places so my website will not work properly. How to confirm and make sure I have successfully changed the domain for my wordpess site and every old domain record has been replaced with the new one

    • This topic was modified 5 years, 10 months ago by jgfn.
Viewing 3 replies - 1 through 3 (of 3 total)
  • If you have access to phpmyadmin or any mysql client , go to the WordPress database , under wp_options table , you need to update the value of home , siteurl with the new domain name.

    Else go to WP Admin Dashboard
    under Settings->General screen , change the Site Address URL & WordPress URL.

    Once you do this , you will logged out of the Admin .

    Re login to WP Admin & install a plugin called “Search and Replace” ,this plugin is used to search & replace the old url value with new url value , once you do it , thats it.

    So this is how you can make sure , the domains are changed successfully.

    Hope it helps ??

    Thread Starter jgfn

    (@jgfn)

    If I use the first method in the following guide https://codex.www.ads-software.com/Changing_The_Site_URL
    I will need to update the wp-config.php file. Will this method automatically updates the new domain in the database?

    Add these two lines to your wp-config.php, where “example.com” is the correct location of your site.

    define( ‘WP_HOME’, ‘https://example.com’ );
    define( ‘WP_SITEURL’, ‘https://example.com’ );

    • This reply was modified 5 years, 10 months ago by jgfn.

    Yes you can do it.
    But avoid editing the code unless or until you have technical skill-set.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to confirm and make sure I have successfully change the domain’ is closed to new replies.