WordPress怎么更换域名

WordPress怎么更换域名

UPDATE wp_options SET option_value = replace(option_value, 'https://旧域名', 'https://新域名') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'https://旧域名','http://新域名');
UPDATE wp_posts SET post_content = replace(post_content, 'https://旧域名', 'https://新域名');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'https://旧域名','https://新域名');
UPDATE wp_usermeta SET meta_value = replace(meta_value, 'https://旧域名', 'https://新域名');
UPDATE wp_comments SET comment_content = REPLACE (comment_content, 'https://旧域名', 'https://新域名');
UPDATE wp_comments SET comment_author_url = REPLACE (comment_author_url, 'https://旧域名','https://新域名');
分享到 :

Leave a Reply

登录 后才能评论