Godaddy 主机配置免费 https / SLL教程
Godaddy主机配置免费 https / SLL教程,配置了ssl后做的301跳转,自动跳转到https网站。
Godaddy 主机配置免费 https / SLL教程,
方法如下:
1、申请免费证书 freessl.cn > 下载证书
2、狗爹后台 cpanl管理员 > 找到ssl导入证书
3、配置301跳转
配置了ssl后做的301跳转,自动跳转到https网站。
以下是Godaddy主机使用WordPress 在配置了ssl后做的301跳转,自动跳转到https的方法。
直接修改文件.htaccess 代码如下。
- # BEGIN WordPress
# The directives (lines) between “BEGIN WordPress” and “END WordPress” are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L] - </IfModule>
- RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] - # END WordPress
更新时间: 2022-09-11
本文地址:https://www.lzb6.com/website/program/119.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!