申请SSL证书
在https://www.sslforfree.com/中申请ssl证书。
修改文件
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
RewriteEngine On
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*)$ https://www.aptx4869.org/$1 [R=301,L]
RewriteCond %{SERVER_PORT} =443
RewriteCond %{HTTP_HOST} ^aptx4869.tech [NC]
RewriteRule ^(.*)$ https://www.aptx4869.org/$1 [R=301,L]
WordPress地址(URL)https://www.aptx4869.org
站点地址(URL)https://www.aptx4869.org
update wp_posts set post_content = replace(post_content, 'http://www.aptx4869.tech','https://www.aptx4869.org');
update wp_posts set post_content = replace(post_content, 'http://aptx4869.tech','https://www.aptx4869.org');
Comment