I'm having problems getting $Response->{Status} to work in conjunction
with ErrorDocument.

I have the following RewriteRule in my httpd.conf:

RewriteRule ^/fanfics/([a-zA-Z_0-9\-]+)/$ /fanfics/series.asp?series=$1

That is, if someone goes to the URL /fanfics/xxx/, it is interpreted as
/fanfics/series.asp?series=xxx.

I want series.asp to return a "404 Not Found" error if it gets an invalid
$series. Right now I have:

unless (series is valid) {
  $Response->{Status} = 404;
}

That returns the "404 Not Found" error correctly, but it also says:

Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.

If I call an invalid URL (one that does not pass through series.asp), then
the ErrorDocument works fine.

Suggestions?

-Philip Mak ([EMAIL PROTECTED])


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to