Skip to content

Instantly share code, notes, and snippets.

@graylaurenm

graylaurenm/.htaccess

Last active Nov 4, 2017
Embed
What would you like to do?
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