Created
April 5, 2018 16:27
-
-
Save syammohanmp/b7780f660e975480635758fd119d6941 to your computer and use it in GitHub Desktop.
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
RewriteCond %{HTTPS} off [OR] | |
RewriteCond %{HTTP_HOST} !^www\.site\.com* | |
RewriteRule ^(.*)$ https://www.site.com/$1 [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment