Quantcast
Channel: 看得透又看得远者prevail. ppt.cc/flUmLx ppt.cc/fqtgqx ppt.cc/fZsXUx ppt.cc/fhWnZx ppt.cc/fnrkVx ppt.cc/f2CBVx
Viewing all articles
Browse latest Browse all 20530

强制apache webserver使用https

$
0
0
利用mod_rewrite,一段很简单的代码就搞定了。。。。
RewriteEngine on
RewriteCond %{HTTPS}   !^on$   [NC]
RewriteRule   .   https://%{HTTP_HOST}%{REQUEST_URI}    [L]
然后,不管你访问网站的的什么页面,都会自动跳转到https。

Viewing all articles
Browse latest Browse all 20530


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>