<button id="qvlbh"><button id="qvlbh"></button></button>
<xmp id="qvlbh"><xmp id="qvlbh"><xmp id="qvlbh"><address id="qvlbh"><output id="qvlbh"></output></address>
<xmp id="qvlbh"><legend id="qvlbh"></legend>
<xmp id="qvlbh"> <address id="qvlbh"><output id="qvlbh"></output></address>
<address id="qvlbh"><button id="qvlbh"></button></address>
<button id="qvlbh"><samp id="qvlbh"></samp></button>
<address id="qvlbh"><button id="qvlbh"></button></address><address id="qvlbh"></address>
<address id="qvlbh"><legend id="qvlbh"></legend></address>
<samp id="qvlbh"><xmp id="qvlbh"><legend id="qvlbh"></legend>
中國站
幫助中心 > 安全 > SSL安全證書(shū) > 證書(shū)安裝 > Apache自動(dòng)跳轉到 HTTPS

Apache自動(dòng)跳轉到 HTTPS

網(wǎng)站根目錄新建 .htaccess

  1. RewriteEngine On
  2. RewriteCond %{SERVER_PORT} 80
  3. RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]
  4. RewriteEngine On
  5. RewriteCond %{SERVER_PORT} 80
  6. RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
  7. RewriteCond %{HTTP_HOST} ^www.example.com [NC]
  8. RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]

高級用法 (可選)

  1. RewriteEngine on

強制HTTPS

  1. RewriteCond %{HTTPS} !=on [OR]
  2. RewriteCond %{SERVER_PORT} 80

某些頁(yè)面強制

  1. RewriteCond %{REQUEST_URI} ^something_secure [OR]
  2. RewriteCond %{REQUEST_URI} ^something_else_secure
  3. RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

強制HTTP

  1. RewriteCond %{HTTPS} =on [OR]
  2. RewriteCond %{SERVER_PORT} 443

某些頁(yè)面強制

  1. RewriteCond %{REQUEST_URI} ^something_public [OR]
  2. RewriteCond %{REQUEST_URI} ^something_else_public
  3. RewriteRule .* http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
国产精品香港三级|日韩精品无码免费专区网站|熟女一区二区三区|一本伊大人香蕉久久网|jzzijzzij亚洲乱熟无码
<button id="qvlbh"><button id="qvlbh"></button></button>
<xmp id="qvlbh"><xmp id="qvlbh"><xmp id="qvlbh"><address id="qvlbh"><output id="qvlbh"></output></address>
<xmp id="qvlbh"><legend id="qvlbh"></legend>
<xmp id="qvlbh"> <address id="qvlbh"><output id="qvlbh"></output></address>
<address id="qvlbh"><button id="qvlbh"></button></address>
<button id="qvlbh"><samp id="qvlbh"></samp></button>
<address id="qvlbh"><button id="qvlbh"></button></address><address id="qvlbh"></address>
<address id="qvlbh"><legend id="qvlbh"></legend></address>
<samp id="qvlbh"><xmp id="qvlbh"><legend id="qvlbh"></legend>