www.mysite.com/something.do?name=%25'%20and%201=1%20--
此 url 包含用于安全测试的异常查询字符串。
Apache 显示其默认错误页面:400 Bad Request
.
但我需要显示我自己的错误页面。
我尝试了几件事,但都失败了,一直显示 apache 默认错误。
1.
错误文档 400 /myErrorPage
2.
重定向匹配 --$ /myErrorPage
3.
RewriteEngine On
RewriteRule --$ /myErrorPage
4
重写引擎开启
重写条件 %{THE_REQUEST} --$
重写规则 ^(.*)$ /myErrorPage
我的 apache 版本是 : Server version: Apache/2.2.12 (Linux/SUSE)
。
我该如何处理这个不寻常的请求网址?