Created
May 25, 2017 00:03
-
-
Save rraallvv/5318cf3765f357221503b8e2f39e09cb to your computer and use it in GitHub Desktop.
WordPress HTTP to HTTPS redirection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN HTTPS Redirection | |
RewriteCond %{HTTPS} off | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
# END HTTPS Redirection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment