migração do wordpress url

Depois de  fazer o backup e importar no novo servidor, voce acessa o phpmyadmin ou qualquer um adm de banco de daos e executa os comandos abaixo.

 

UPDATE wp_options SET option_value = replace(option_value, 'http://olddomain.com', 'http://newdomain.com') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://olddomain.com','http://newdomain.com') where guid>0;

UPDATE wp_posts SET post_content = replace(post_content, 'http://olddomain.com', 'http://newdomain.com') where ID>0;

UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://olddomain.com', 'http://newdomain.com')  where meta_id>0;



https://stackoverflow.com/questions/42127406/sql-update-site-url-and-domain-for-wordpress
Change and Update WordPress URLS in Database When Site is Moved to new Host
https://blog.templatetoaster.com/update-old-urls-in-database/

Deixe um comentário