php
Pages
(Move to ...)
主页
▼
Tuesday, November 15, 2011
Force SSL in Apache
If you don't want to use http, make sure all your incoming connections go through port 443.
Write this to your .htaccess file on the root directory of your site.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$
https://www.example.com/$1
[R,L]
‹
›
Home
View web version