Simple rewrite rule to send all HTTP requests for any URL to a HTTPS connection.

RewriteEngine on
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}

Tags:

Categories:

Updated: