WordPress更换修改域名

531次阅读
没有评论

UPDATE `wp_options` SET `option_value` = replace(`option_value`, 'http://your-old-domain.com', 'http://your-new-domain.com') WHERE `option_name` = 'home' OR `option_name` = 'siteurl';
 
UPDATE `wp_posts` SET `guid` = replace(`guid`, 'http://your-old-domain.com', 'http://your-new-domain.com');
 
UPDATE `wp_posts` SET `post_content` = replace(`post_content`, 'http://your-old-domain.com', 'http://your-new-domain.com');
 
UPDATE `wp_comments` SET `comment_content` = replace(`comment_content`, 'http://your-old-domain.com', 'http://your-new-domain.com');

无法进入后台,提示redirected you too many times.

样式无法加载

$_SERVER['HTTPS'] = 'on';
define('WP_HOME','https://wordpress.188.elebear.com');
define('WP_SITEURL','https://wordpress.188.elebear.com');

将WordPress站点从http切换至https – 知乎 (zhihu.com)

正文完
 0
wujingquan
版权声明:本站原创文章,由 wujingquan 于2024-07-05发表,共计723字。
转载说明:Unless otherwise specified, all articles are published by cc-4.0 protocol. Please indicate the source of reprint.
评论(没有评论)