質問編集履歴
2
引数を変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
https://example.com/aa.cgi?a=aaa.com&b=bbb.net
|
5
|
+
https://example.com/aa.cgi?a=http://aaa.com&b=http://bbb.net
|
6
6
|
|
7
|
-
https://example.com/aa.cgi?a=bbb.xyz&b=aaa.com
|
7
|
+
https://example.com/aa.cgi?a=https://bbb.xyz&b=https://aaa.com
|
8
8
|
|
9
9
|
|
10
10
|
|
1
引数を変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
以下のようなURLで、場所に関わらず、"
|
1
|
+
以下のようなURLで、場所に関わらず、"aaa.com"を含む場合に404にしたいです。
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
https://example.com/aa.cgi?a=
|
5
|
+
https://example.com/aa.cgi?a=aaa.com&b=bbb.net
|
6
6
|
|
7
|
-
https://example.com/aa.cgi?a=
|
7
|
+
https://example.com/aa.cgi?a=bbb.xyz&b=aaa.com
|
8
8
|
|
9
9
|
|
10
10
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
RewriteEngine On
|
20
20
|
|
21
|
-
RewriteCond %{REQUEST_URI} ^.*
|
21
|
+
RewriteCond %{REQUEST_URI} ^.*aaa.com.*
|
22
22
|
|
23
23
|
RewriteRule ^.*$ - [NC,R=404,L]
|
24
24
|
|