Skip to content

Instantly share code, notes, and snippets.

@WordPress-Handbuch
Created March 4, 2019 08:02
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 WordPress-Handbuch/972e9fc67aba6c5709c6baaa104ba2db to your computer and use it in GitHub Desktop.
Save WordPress-Handbuch/972e9fc67aba6c5709c6baaa104ba2db to your computer and use it in GitHub Desktop.
Simple HTTP to HTTPS redirect
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment