httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] A question for the Apache gurus!
Date Mon, 05 Jan 2004 16:37:53 GMT

On Mon, 5 Jan 2004, Jon Block wrote:
> Can someone please give me an example of how I could serve out my "go.cfm"
> file when requests come in for files that I do not have *AND* at the same
> time return a normal response status code like "200 OK" or a 302 redirect??
> Whatever happens, I don't want to reveal to the client that anything was
> "not found" so that my links are spider-able.

I never recommend lying to clients unless you have a VERY good reason, but
if you want to, it is easy enough:

ErrorDocument 404 http://www.sample.com/go.cfm?id=123
ErrorDocument 403 http://www.sample.com/go.cfm?id=123

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message