回答編集履歴
2
回答の追記
test
CHANGED
@@ -39,3 +39,23 @@
|
|
39
39
|
```
|
40
40
|
|
41
41
|
|
42
|
+
|
43
|
+
---
|
44
|
+
|
45
|
+
(追記 2017-03-30 20:30頃)
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
冗長な書き方ですが、「RwriteCond」で条件設定。
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
```
|
54
|
+
|
55
|
+
RewriteCond %{REQUEST_URI} (^/smp/)
|
56
|
+
|
57
|
+
RewriteRule ^smp/(.*)$ http://www.testshoppingpage.com/ [R=301,L]
|
58
|
+
|
59
|
+
```
|
60
|
+
|
61
|
+
|
1
回答の追記
test
CHANGED
@@ -13,3 +13,29 @@
|
|
13
13
|
RewriteRule ^smp$ http://www.testshoppingpage.com/ [R=301,L]
|
14
14
|
|
15
15
|
```
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
---
|
20
|
+
|
21
|
+
(追記 2017-03-29 10:35頃)
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
リダイレクト元が `http://www.testshoppingpage.com/smp/` だとすると・・・
|
26
|
+
|
27
|
+
こんな感じです。
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
```
|
32
|
+
|
33
|
+
RewriteEngine on
|
34
|
+
|
35
|
+
RewriteBase /
|
36
|
+
|
37
|
+
RewriteRule ^smp/(.*)$ http://www.testshoppingpage.com/ [R=301,L]
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
|