htaccess
#Satisfy Any # used to override htpassword on dev sites # force ssl when conditional matches RewriteEngine On RewriteCond %{HTTP_HOST} ^www.domain\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.domain.com/$1 [R,L]