tomcat的404报错页面指定即跳转方式的实现
/usr/local/tomcat/apache-tomcat/conf/web.html指定如下内容[*]
[*]404
[*]/error.html
[*]
在tomcat的主目录下面新建error.html文件,文件内容如下
[*]
[*]
[*]
[*]
[*]
[*]
[*]
[*]
[*]
[*]
这样所有的404报错都指向了error.html页面,并跳转到http://www.sina.com/index.html
页:
[1]