A
Aleksi Kallio
I have configured my own error page for the 404 HTTP error like this:
<error-page>
<error-code>404</error-code>
<location>/my404.jsp</location>
</error-page>
Tomcat responds to 404-causing requests by first sending a 302 (the page
has moved) response, which redirects the browser to /my404.jsp - and it
is served normally, with HTTP code 200 (OK). The problem is that link
validator script can't catch missing pages, as no 404 is returned to
client.
How to fix this?
<error-page>
<error-code>404</error-code>
<location>/my404.jsp</location>
</error-page>
Tomcat responds to 404-causing requests by first sending a 302 (the page
has moved) response, which redirects the browser to /my404.jsp - and it
is served normally, with HTTP code 200 (OK). The problem is that link
validator script can't catch missing pages, as no 404 is returned to
client.
How to fix this?