HTTP 301重定向到HTTPS htaccess文件配置方法!
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^a\.html$ https://%{HTTP_HOST}/b.html [R=301,L]
最后一条是从 a.html 301重定向到 b.html
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^a\.html$ https://%{HTTP_HOST}/b.html [R=301,L]
最后一条是从 a.html 301重定向到 b.html
扫一扫二维码,添加客服微信