回答編集履歴
2
誤り修正
test
CHANGED
@@ -18,14 +18,14 @@
|
|
18
18
|
|
19
19
|
#追記
|
20
20
|
|
21
|
-
リライトでやる場合。
|
21
|
+
リライトでやる場合。修正版。
|
22
22
|
|
23
23
|
```Apache
|
24
24
|
|
25
25
|
RewriteEngine On
|
26
26
|
|
27
|
-
RewriteCond %{HTTP_HOST} ^secure02.blue.shared
|
27
|
+
RewriteCond %{HTTP_HOST} ^secure02.blue.shared-server.net$
|
28
28
|
|
29
|
-
RewriteRule ^contact/(.*)$ https://example.com/contact/$1 [R=301]
|
29
|
+
RewriteRule ^example.com/contact/(.*)$ https://example.com/contact/$1 [R=301]
|
30
30
|
|
31
31
|
```
|
1
コメントを受けての追記
test
CHANGED
@@ -13,3 +13,19 @@
|
|
13
13
|
Redirect permanent /example.com/contact https://example.com/contact
|
14
14
|
|
15
15
|
```
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
#追記
|
20
|
+
|
21
|
+
リライトでやる場合。
|
22
|
+
|
23
|
+
```Apache
|
24
|
+
|
25
|
+
RewriteEngine On
|
26
|
+
|
27
|
+
RewriteCond %{HTTP_HOST} ^secure02.blue.shared\-server.net$
|
28
|
+
|
29
|
+
RewriteRule ^contact/(.*)$ https://example.com/contact/$1 [R=301]
|
30
|
+
|
31
|
+
```
|