Created
September 17, 2015 05:52
-
-
Save cazuki/17ba6ae2ba16d662b1da to your computer and use it in GitHub Desktop.
HTTPSへの301リダイレクト
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
RewriteEngine on | |
RewriteCond %{SERVER_PORT} !^443$ [OR] | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment