transferring website

Hi,
I have recently transferred my website from wp-testsite to my own hosting, but it keeps redirecting back to my test site.
How can I stop this from happening, I am assuming I have to change the setting within WordPress or the links.

Thanks for any help.
Andrew

  • Rupok

    Hi Andrew, how are you doing today?

    Can you please make sure you change WordPress Home URL and Site URL in database? Login to your PHPMyAdmin panel, select your database and go to "wp_options" table. There you will see two URLs. Update those to your new URL. Please check the attached screenshot for reference.

    Or you can add the following lines in your "wp-config.php" file and save and try to login again.

    define('WP_HOME','http://newurl.com');
    define('WP_SITEURL','http://newurl.com');

    Replace newurl.com with your real URL.

    You will get full details about this on this official documentation: https://codex.wordpress.org/Changing_The_Site_URL

    Then you can use Search & Replace plugin to search your old URL in everywhere of your site and replace those with new URL.

    Please let us know if you still have any confusion or if you are stuck at any point. We will be glad to help further.

    Have a nice day. Cheers!
    Rupok

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.