# # Customizable error responses come in three flavors: # 1) plain text 2) local redirects 3) external redirects # # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://www.example.com/subscription_info.html
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
中我怎么知道是www.abc.com/a.htm谢谢
404错误就是404错误。
要不如你用http_refer看看能不能凋出引用页
$_SERVER['REDIRECT_URL'] //返回文件名,不包括?后面的
$_SERVER['REQUEST_URI'] //包括get参数
应该是你说的那样,我查手册也是这么说的,可能是我的APACHE那里配置有问题,再找找
当你访问一个错误页时,在这个日志里面加入了两条记录
第一条是错误的地址
第二条是新定向的错误信息显示页
可以通过分析记录的时间时间,来得到当前错误页的地址,然后就知道错误连接的地址了27.0.0.1 - - [22/Oct/2004:17:04:57 +0800] "GET /aaaaaaaaaaaaaaaa.php HTTP/1.1" 302 309
127.0.0.1 - - [22/Oct/2004:17:04:57 +0800] "GET /error.php HTTP/1.1" 200 1840