Skip to content

Instantly share code, notes, and snippets.

@akosednar
Created December 23, 2011 09:49
Show Gist options
  • Save akosednar/1513749 to your computer and use it in GitHub Desktop.
Save akosednar/1513749 to your computer and use it in GitHub Desktop.
Force SSL Apache
<IfModule mod_rewrite.c>
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment