http 如否转向https 需要向http 如否转向https 写向如下内容,前条件你必须有HTTPS证书

http 如否转向https

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]


<IfModule mod_rewrite.c>

  Options +FollowSymlinks -Multiviews

  RewriteEngine On

 RewriteRule ^(.*)$ https://bbs.aionchs.com/$1 [R=301,L]

 RewriteCond %{HTTP_HOST} ^bbs.aionchs.com [NC]

 RewriteRule ^(.*)$ https://bbs.aionchs.com/$1 [L,R=301]

  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteCond %{REQUEST_FILENAME} !-f

  RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]

</IfModule>



发表评论 已发布 0

还可以输入 800 个字
看不清?点击更换
 
 
评论 打印