Skip to content

Instantly share code, notes, and snippets.

@Debadge
Created May 10, 2016 10:08
Show Gist options
  • Save Debadge/71ad687bfec8486cd0543f017739416d to your computer and use it in GitHub Desktop.
Save Debadge/71ad687bfec8486cd0543f017739416d to your computer and use it in GitHub Desktop.
301 Redirect HTTPS back to HTTP
# HTTPS back to HTTP Redirect
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} on [OR]
RewriteCond %{SERVER_PORT} ^443$ [OR]
RewriteCond %{HTTP:X-Forwarded-Proto} https
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment