Created
September 20, 2019 02:18
-
-
Save ma2i/59624d8ba7b1e836d23f04307e1c4b19 to your computer and use it in GitHub Desktop.
wwwあり、httpsに統一
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
# wwwあり、httpsに統一 | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^sensei\.biz | |
RewriteRule (.*) http://www.sensei.biz/$1 [R=301,L] | |
RewriteCond %{HTTPS} !on | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment