Skip to content

Instantly share code, notes, and snippets.

@remkus
Last active June 4, 2018 07:24
Show Gist options
  • Save remkus/69c6b83f860a635e08ea to your computer and use it in GitHub Desktop.
Save remkus/69c6b83f860a635e08ea to your computer and use it in GitHub Desktop.
# Redirect from HTTP to HTTPS
RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301,NC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment