QQ唯一客服请加:519907267 ✈️飞机+44 7936293139 whatsapp:+44 7394140879
好消息:即日起,使用推荐链接推荐您的朋友购买我站证书送您惊喜好礼!
wordpress安装SSL证书
2021/04/14 13:26

1.png 

证书颁发以后,取回证书,huweissl证书打包带是三种SSL证书,将for nginx压缩包解压,得到一个xxx.key和xxx.crt,key是私,crt是证书。
安装以
Plesk面板为例

1、选择保证您网站的安全

2.png
<img class="aligncenter wp-image-4236 size-full" src="https://imhui.yeziting.com/wp-content/uploads/2015/08/anzhuangssl1.png" alt="anzhuangssl1" width="708" height="292" />


 77.png 

2、添加SSL证书<img class="aligncenter size-full wp-image-4237" src="https://imhui.yeziting.com/wp-content/uploads/2015/08/anzhaungssl2.png" alt="anzhaungssl2" width="238" height="95" srcset="https://imhui.yeziting.com/wp-content/uploads/2015/08/anzhaungssl2.png 238w, https://imhui.yeziting.com/wp-content/uploads/2015/08/anzhaungssl2-150x60.png 150w" sizes="(max-width: 238px) 100vw, 238px" />

 

3、上传私匙用key 、证书用crt ,然后填写名称等信息,电子邮件底下的三个选项不用管,直接点击发送文件,不出意外,你已经成功安装证书。3.png
<img class="aligncenter size-full wp-image-4238" src="https://imhui.yeziting.com/wp-content/uploads/2015/08/anzhuangssl3.png" alt="anzhuangssl3" width="991" height="608" />

4、添加一个 SSL 证书到域名后,您需要启用 SSL 支持并在网站主机设置中选择该证书:网站与域名-主机设置(该域名的)-安全性。如图所示:

4.png
<img class="aligncenter size-full wp-image-4239" src="https://imhui.yeziting.com/wp-content/uploads/2015/08/anzhuangssl4.png" alt="anzhuangssl4" width="1001" height="213" />

 

5、替换站内非https链接:

直接上简单粗暴的方法,先在设置-常规里更改网站地址,然后安装 Velvet Blues Update URLs 这个插件(后台搜索安装就可以),直接替换站内https链接。

5.png
<img class="aligncenter size-full wp-image-4241" src="https://imhui.yeziting.com/wp-content/uploads/2015/08/anzhuangssl6.png" alt="anzhuangssl6" width="689" height="129" />

6.png
<img class="aligncenter size-full wp-image-4242" src="https://imhui.yeziting.com/wp-content/uploads/2015/08/anzhaungssl5.png" alt="anzhaungssl5" width="779" height="595" />

替换站外非https链接:

比如CNZZ则直接把网址改为https://即可,其他的链接视情况增加或者删除,总之https的网站不让用http的链接,这是浏览器的规则。(要不然会显示网页里面含有不安全的因素),网址前也不会出现绿色的挂锁(国内浏览器)谷歌、火狐等浏览器则显示灰色的挂锁。

使用https方式(SSL)调用Gravatar头像服务器地址,使用方法同上,将下面代码添加到主题functions.php文件中

function get_ssl_avatar($avatar) {
$avatar = preg_replace('/.*\/avatar\/(.*)\?s=([\d]+)&.*/','<img src="https://secure.gravatar.com/avatar/$1?s=$2" class="avatar avatar-$2" height="$2" width="$2">',$avatar);
return $avatar;
}
add_filter('get_avatar', 'get_ssl_avatar');

 

6、强制跳转到 https,修改根目录下的.htaccess,把里面的网址改为你自己的。

# BEGIN WordPress
< IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !on [NC]
RewriteCond %{HTTP_USER_AGENT} !(baiduspider|soso|bing|sogou|yahoo|sohu-search|yodao|robozilla|msnbot|msie|feedburner) [NC]
RewriteRule (.*) https://bestcherish.com%{REQUEST_URI} [R=301,NC,L]
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
< /IfModule>
# END WordPress

SSL证书安装完毕

 

 

QQ客服 SKYPE客服