请问如何将root目录中的404页面跳转?
nbgyf 2013-03-25 02:16:35 我的网站需要http://127.0.0.1/abc/进行访问。
我想配置成假如用户打错abc(即http://127.0.0.1/ab/)后也能访问http://127.0.0.1/abc/。
我在tomcat5/conf/web.xml中配置了error-page项的404跳转页面。但是每次都跳到root目录中index.jsp页面。
<error-page>
<error-code>404</error-code>
<location>/index.jsp</location>
</error-page>
请问哪位大侠能够帮帮忙,帮小弟解决一下,等着急用。谢谢啦!