wordpress替换数据库的URL地址

UPDATE wp_options SET option_value = replace( option_value, ‘https://www.lijun.me’, ‘https://www.lijun.me’ ) WHERE option_name = ‘home’ OR option_name = ‘siteurl’
UPDATE wp_posts SET post_content = replace( post_content, ‘https://www.lijun.me’, ‘https://www.lijun.me’ ) ; 
UPDATE wp_posts SET guid = replace( guid, ‘https://www.lijun.me’, ‘https://www.lijun.me’ ) ; 

前面是old,后面是new

此条目发表在Experience分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注