質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -45,3 +45,7 @@
|
|
45
45
|
RewriteRule ^(.*)$ /? [R=301,L]
|
46
46
|
|
47
47
|
```
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
http://www.hoge.jp/topics.php?id=2509などのURLはすでに存在せず、古い被リンク元から404エラーを起こしているため、リダイレクトさせたいと思っています。
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,14 +8,40 @@
|
|
8
8
|
|
9
9
|
http://www.hoge.jp/topics.php?id=2505
|
10
10
|
|
11
|
+
http://www.hoge.jp/topics.php?id=2506
|
11
12
|
|
13
|
+
http://www.hoge.jp/topics.php?id=2507
|
12
14
|
|
13
|
-
|
15
|
+
http://www.hoge.jp/topics.php?id=2508
|
16
|
+
|
17
|
+
http://www.hoge.jp/topics.php?id=2509
|
14
18
|
|
15
19
|
|
16
20
|
|
21
|
+
|
22
|
+
|
17
|
-
|
23
|
+
上記のようにパラメーターが複数あるので、topics.phpが含まれる場合はトップページにリダイレクトさせたいです。
|
18
24
|
|
19
25
|
|
20
26
|
|
27
|
+
まずは、特定のパラメーターのみ以下のページを参考に
|
28
|
+
|
29
|
+
リダイレクトしたいのですが、この時点で動作していません。
|
30
|
+
|
31
|
+
http://welcart.seesaa.net/article/300080959.html
|
32
|
+
|
33
|
+
|
34
|
+
|
21
|
-
|
35
|
+
###htaccess内
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
RewriteEngine On
|
40
|
+
|
41
|
+
RewriteCond %{REQUEST_URI} topics.php
|
42
|
+
|
43
|
+
RewriteCond %{QUERY_STRING} ^id=2505
|
44
|
+
|
45
|
+
RewriteRule ^(.*)$ /? [R=301,L]
|
46
|
+
|
47
|
+
```
|