Created
May 6, 2016 12:33
-
-
Save incomegems/3149a585819b35aea2ace9aefd401807 to your computer and use it in GitHub Desktop.
301 Permanent Redirect from http to https for www - replace www.example.com with your domain
This file contains 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
Options +FollowSymlinks | |
RewriteEngine on | |
RewriteBase / | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment