質問編集履歴
1
hogehoge.comをsample.comへ変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
全てのアクセスをhttps://www.
|
1
|
+
全てのアクセスをhttps://www.sample.comに統一したいです。
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
http://
|
5
|
+
http://sample.com → https://www.sample.com
|
6
6
|
|
7
|
-
http://www.
|
7
|
+
http://www.sample.com →https://www.sample.com
|
8
8
|
|
9
|
-
https://
|
9
|
+
https://sample.com →https://www.sample.com
|
10
10
|
|
11
|
-
※/index.html→https://www.
|
11
|
+
※/index.html→https://www.sample.com含む
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
出来たこと
|
28
28
|
|
29
|
-
・http://
|
29
|
+
・http://sample.com→https://sample.comのみ
|
30
30
|
|
31
31
|
|
32
32
|
|
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
知りたいこと
|
52
52
|
|
53
|
-
・全てのアクセスをhttps://www.
|
53
|
+
・全てのアクセスをhttps://www.sample.comに統一する.htaccessファイルの正しい書き方
|
54
54
|
|
55
55
|
|
56
56
|
|
@@ -72,9 +72,9 @@
|
|
72
72
|
|
73
73
|
|
74
74
|
|
75
|
-
RewriteCond %{HTTP_HOST} ^
|
75
|
+
RewriteCond %{HTTP_HOST} ^sample.com [NC]
|
76
76
|
|
77
|
-
RewriteRule ^(.*) https://www.
|
77
|
+
RewriteRule ^(.*) https://www.sample.com/$1 [R=301,L]
|
78
78
|
|
79
79
|
|
80
80
|
|