Skip to content

Instantly share code, notes, and snippets.

@codeprimate
Created June 2, 2015 02:58
Show Gist options
  • Save codeprimate/c2bdaea4ab393af52225 to your computer and use it in GitHub Desktop.
Save codeprimate/c2bdaea4ab393af52225 to your computer and use it in GitHub Desktop.
Apache HTTPS Redirect
<VirtualHost *:80>
# ...
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment