WordPress 博客域名更换
请在SQL运行下面代码,将前后域名链接更换成您想的即可。
- UPDATE wp_options SET option_value = REPLACE(option_value, 'https://www.jujumi.top', 'https://www.jujumi.com.cn') WHERE option_name = 'home' OR option_name = 'siteurl';
- UPDATE wp_posts SET post_content = REPLACE (post_content, 'https://www.jujumi.top', 'https://www.jujumi.com.cn');
- UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'https://www.jujumi.top','https://www.jujumi.com.cn');
- UPDATE wp_comments SET comment_content = REPLACE (comment_content, 'https://www.jujumi.top', 'https://www.jujumi.com.cn');
- UPDATE wp_comments SET comment_author_url = REPLACE (comment_author_url, 'https://www.jujumi.top','https://www.jujumi.com.cn');
- UPDATE wp_posts SET guid = REPLACE (guid, 'https://www.jujumi.top', 'https://www.jujumi.com.cn') WHERE post_type = 'attachment';
复制代码
|