Skip to content

Instantly share code, notes, and snippets.

@tur-nr
Created March 12, 2013 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tur-nr/5141440 to your computer and use it in GitHub Desktop.
Save tur-nr/5141440 to your computer and use it in GitHub Desktop.
Force HTTPS protocol.
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^/secure/path
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment