Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Serving a in-construction page only

Status
Not open for further replies.

ddrillich

Technical User
Jun 11, 2003
546
US
Good Day,

I would like to serve an in-construction page only for every request against our site. Is it possible? Using Tomcat 6.0....

Regards,
Dan
 
I added the following to the web.xml file -

<error-page>
<error-code>404</error-code>
<location>/error404.html</location>
</error-page>


Interestingly, it works well from certain client locations and from other locations it doesn't - the users get plain 404s.


 
Hi

Then instead of pointing Tomcat to a static document, use a servlet which can send back a different HTTP status code. Of course, for Explorer only, to not mislead the crawlers.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top