Skip to content

Instantly share code, notes, and snippets.

@derekbtw
Created December 31, 2016 08:47
Show Gist options
  • Save derekbtw/458477ce16abbe3a518efe93e2e13124 to your computer and use it in GitHub Desktop.
Save derekbtw/458477ce16abbe3a518efe93e2e13124 to your computer and use it in GitHub Desktop.
Don't force SSL in specific directory
#Place the following inside the directory you don't want SSL on
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} ^/
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment