Try checking out this post http://www.velocityreviews.com/forums/t142707-tomcat-404-custom-error.html
Prakash Nathan1 wrote: > > Hello > > Here is what I have setup to redirect all the 404 request to 404Error.html > > I have made the below changes to the Tomcat's web.xml file > (/opt/app/tomcat/public1/conf/web.xml) > > <error-page> > <error-code>404</error-code> > <location>/404Error.html</location> > </error-page> > > I have placed the 404Error.html in the following folder > /opt/app/tomcat/public1/webapps/ROOT > > However, when I try to access the following link, it is not redirecting to > 404Error.html page but it displays > > http://3.137.168.132:8180/test > > "The page cannot be found > The page you are looking for might have been removed, had its name > changed, or is temporarily unavailable. .." > > However, I can directly access the 404Error.html page as follows > http://3.137.168.132:8180/404Error.html > > Here are the environmental details > > Apache: Tomcat/4.1.27 > JVM/JDK: 1.4.2_06 > Platform: OS Red Hat Enterprise Linux AS release 3 (Taroon Update 5) > > Please help me finding the configuration miss! Thanks > > Prakash > -- View this message in context: http://www.nabble.com/Tomcat-404-Error-Redirects-tp21611830p22249852.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org