I've been working in my blog. Yesterday I made all back-ups (files and DB), i´ve changed the wp-config.php with the new user, DB name and password and I publised everything at my actual URL.


My test URL is http://mokaweb.com.br/Moka/

Well, everything was good until I decided to access wp-admin.

When I tryied to access wordpress panel, it changes to the old URL.

Getting direct to the point: every link points to the old URL.

Anybody knows what I have to do?

  • Are you saying you copied the database? If so, you need to go back and use a database migration plugin to update the many places WP refers to the URL.
    – WebElaine
    Jan 28, 2020 at 19:10
  • @WebElaine Now, I cannot access any wp-admin. Each one is ponting to the other. I'm saying that my development URL is linked to my domain and this one is pointing to development URL. Crazy. Is there another option to change the DB without using the plugin? Jan 29, 2020 at 14:42
  • Just swap your wp-config.php files. That is what tells WP which database to connect to.
    – WebElaine
    Jan 29, 2020 at 17:48
  • @WebElaine thank you very much, I could fix it after you tell me about DB wp-options Jan 29, 2020 at 21:52

1 Answer 1


Almost everything is okay after follow this step by step.

If you are changing the URL of your website at the same time as moving servers, you might need to do some additional MySQL work. For example, if you're changing from domain-one.com to domain-two.com, you'll need to change the siteurl and home options in the wp_options table.

Moving a wordpress site - how to do it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.