transferring website

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.

  • 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.


    Replace with your real URL.

    You will get full details about this on this official documentation:

    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!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.