SSl 301跳转appche

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.baidu.com$ [NC]
RewriteRule ^(.*)$ http://baidu.com/$1 [R=301,L]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
</IfModule>

 

详细:https://wuglu.com/web/348.html

 

posted @ 2021-12-04 10:34  伟哥自留地  阅读(39)  评论(0编辑  收藏  举报
伟哥自留地