Skip to content

Instantly share code, notes, and snippets.

@cadars
Last active July 22, 2021 11:59
Show Gist options
  • Select an option

  • Save cadars/557c2eedea8adbf670d0fad3ef49e02c to your computer and use it in GitHub Desktop.

Select an option

Save cadars/557c2eedea8adbf670d0fad3ef49e02c to your computer and use it in GitHub Desktop.
Force HTTP (note that it needs a valid https certificate to work ¯\_(ツ)_/¯)
RewriteEngine On
RewriteCond %{HTTPS} !=off
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment