Hi all,

I need to produce a specific error for a single file that no longer exists
on our site. Is this possible on IIS6? And how?

I'd replace the file with the content of the error page but I really need it
to produce a proper 404 for the search engines.

--
Sean.

Re: Specific 404 for single file by Ken

Ken
Tue Mar 29 05:59:14 CST 2005

Yes, that is possible. You can use an ISAPI Filter if you want to do this
transparently.

Alternatively, set the HTTP Response status to 404 (assuming the page can
use some kind of server-side code, e.g. ASP, ASP.NET, CF, PHP etc)

Cheers
Ken

--
Blog: www.adopenstatic.com/cs/blogs/ken/
Web: www.adopenstatic.com


"Sean S - Perth, WA" <SeanSPerthWA@discussions.microsoft.com> wrote in
message news:34ECD37B-2E37-4455-AF24-E6584FCFECFE@microsoft.com...
: Hi all,
:
: I need to produce a specific error for a single file that no longer exists
: on our site. Is this possible on IIS6? And how?
:
: I'd replace the file with the content of the error page but I really need
it
: to produce a proper 404 for the search engines.
:
: --
: Sean.



Re: Specific 404 for single file by SeanSPerthWA

SeanSPerthWA
Tue Mar 29 23:51:03 CST 2005

"Ken Schaefer" wrote:

> Yes, that is possible. You can use an ISAPI Filter if you want to do this
> transparently.

Do you mean something like ISAPI_Rewrite?

> Alternatively, set the HTTP Response status to 404 (assuming the page can
> use some kind of server-side code, e.g. ASP, ASP.NET, CF, PHP etc)

Unfortunately not but I've redirected to one that can. Good enough.

Thanks.

Sean.