質問編集履歴
2
動的について追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
やりたいことは
|
6
6
|
|
7
|
-
http://www.example.com/1
|
7
|
+
http://www.example.com/?act=1 を http://www.example.com/11.html へリダイレクト、
|
8
8
|
|
9
|
-
http://www.example.com/2
|
9
|
+
http://www.example.com/?act=2 を http://www.example.com/22.html へリダイレクト
|
10
10
|
|
11
|
-
http://www.example.com/3
|
11
|
+
http://www.example.com/?act=3 を http://www.example.com/33.html へリダイレクトです。
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -42,11 +42,11 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
RewriteRule ^1
|
45
|
+
RewriteRule ^?act=11$ http://www.example.com/11.html [R=301]
|
46
46
|
|
47
|
-
RewriteRule ^2
|
47
|
+
RewriteRule ^?act=22$ http://www.example.com/22.html [R=301]
|
48
48
|
|
49
|
-
RewriteRule ^3
|
49
|
+
RewriteRule ^?act=33$ http://www.example.com/33.html [R=301,L]
|
50
50
|
|
51
51
|
|
52
52
|
|
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
やりたいことは
|
6
6
|
|
7
|
-
http://
|
7
|
+
http://www.example.com/1.html を http://www.example.com/11.html へリダイレクト、
|
8
8
|
|
9
|
-
http://
|
9
|
+
http://www.example.com/2.html を http://www.example.com/22.html へリダイレクト
|
10
10
|
|
11
|
-
http://
|
11
|
+
http://www.example.com/3.html を http://www.example.com/33.html へリダイレクトです。
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -38,15 +38,15 @@
|
|
38
38
|
|
39
39
|
RewriteCond %{REQUEST_FILENAME} !^(.*).(gif|png|jpe?g|css|ico|js|svg)$ [NC]
|
40
40
|
|
41
|
-
RewriteRule ^(.*)$ index.php [QSA
|
41
|
+
RewriteRule ^(.*)$ index.php [QSA]
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
RewriteRule ^ht
|
45
|
+
RewriteRule ^1.html$ http://www.example.com/11.html [R=301]
|
46
46
|
|
47
|
-
RewriteRule ^ht
|
47
|
+
RewriteRule ^2.html$ http://www.example.com/22.html [R=301]
|
48
48
|
|
49
|
-
RewriteRule ^ht
|
49
|
+
RewriteRule ^3.html$ http://www.example.com/33.html [R=301,L]
|
50
50
|
|
51
51
|
|
52
52
|
|