Skip to content

Instantly share code, notes, and snippets.

@jlengstorf
Created February 28, 2013 21:59
Show Gist options
  • Save jlengstorf/5060480 to your computer and use it in GitHub Desktop.
Save jlengstorf/5060480 to your computer and use it in GitHub Desktop.
Apache configuration for forcing a secure connection to the site.
# Force SSL
RewriteCond %{SERVER_PORT} !443$
RewriteRule ^(.*)$ https://www.example.org/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment