Skip to content

Instantly share code, notes, and snippets.

@graylaurenm
Last active November 4, 2017 13:10
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 graylaurenm/f452e53f9030d12a1c3d8a3ce3ff68fc to your computer and use it in GitHub Desktop.
Save graylaurenm/f452e53f9030d12a1c3d8a3ce3ff68fc to your computer and use it in GitHub Desktop.
Redirect to HTTPS
# @see https://really-simple-ssl.com/knowledge-base/manually-insert-htaccess-redirect-http-to-https/
# BEGIN Redirect to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# END Redirect to HTTPS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment