Thursday, February 21, 2008

Linux How-to: Apache Redirection

Apache Redirection from http to https:

RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/(.*)$ https://my.domain.com/$1 [L,R]
RewriteLog "/var/log/httpd/rewrite.log"
RewriteLogLevel 4

0 comments: