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 /
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?
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.
http://agenciamoka
My test URL is http://mokaweb.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?
Share Improve this question asked Jan 28, 2020 at 18:54 Állan Fidelis ToledoÁllan Fidelis Toledo 1371 silver badge7 bronze badges 4- 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 Commented 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? – Állan Fidelis Toledo Commented Jan 29, 2020 at 14:42
- Just swap your wp-config.php files. That is what tells WP which database to connect to. – WebElaine Commented Jan 29, 2020 at 17:48
- @WebElaine thank you very much, I could fix it after you tell me about DB wp-options – Állan Fidelis Toledo Commented Jan 29, 2020 at 21:52
1 Answer
Reset to default 0Almost 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 to domain-two, you'll need to change the siteurl and home options in the wp_options table.
Moving a wordpress site - how to do it