質問編集履歴

1

htaccess について実際記述したものと違ったので修正しました

2021/02/26 05:10

投稿

neracmprnp
neracmprnp

スコア0

test CHANGED
File without changes
test CHANGED
@@ -38,9 +38,9 @@
38
38
 
39
39
 
40
40
 
41
- RewriteCond %{HTTP_HOST} !^www.
41
+ RewriteCond %{HTTP_HOST} ^www.
42
42
 
43
- RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
43
+ RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
44
44
 
45
45
 
46
46
 
@@ -96,9 +96,9 @@
96
96
 
97
97
 
98
98
 
99
- RewriteCond %{HTTP_HOST} !^www.
99
+ RewriteCond %{HTTP_HOST} ^www.
100
100
 
101
- RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
101
+ RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
102
102
 
103
103
 
104
104