HTTP 301重定向到HTTPS htaccess文件配置方法!

百晓生2025-04-08 11:24:41334

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


本文链接:http://www.58q.org/b/10.html 

扫一扫二维码,添加客服微信