# Enforce HTTPS and use non-www # This checks to make sure the connection is not already HTTPS RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]