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)
正文完