Force SSL HTTPS Connections

RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule ^(.*)$ <a href="https://www.domain.com/$1" >https://www.domain.com/$1</a> [R,L]

source

Leave a Reply