See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of 
a User

Hi Martin,

My name's Jason. I am posting from a Tomcat Forum on a website. Sam must be the 
admin person...? Anyway what's happening is that if a user request causes a 
page request for a non-existent page we redirect to our custom error page 
404.jsp, which displays a nice error. What's happening is that if a spider 
(googlebot) has a reference to a page that's now non-existent it will come to 
that page and get sent to 404.jsp, which it will happily index since it gets a 
HTTP 200 status back. My question is how to get this page to send a HTTP 404 
even though it loads correctly.

Thanks,

Jason

In Response To: 

Sam-

How is your custom error page being indexed?

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 09, 2007 3:15 PM
Subject: Generating a 404 response


> See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on 
> behalf of a User
>
> I have a J2EE application residing on Tomcat. The pages are dynamically 
> generated. If a use enters an invalid request I redirect him to a generic 
> error page (which isn't really an error page but just a jsp that display a 
> message and allows a redirect back to the site's main page). I would like 
> to return a status of 404 from this page but because the page gets served 
> properly I am returning a status of 200. The problem with this is that my 
> error page than gets indexed by search engines. Any advise on how to 
> tackle this?
>
> TIA
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [EMAIL PROTECTED]
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 


---------------------------------------------------------------------
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to