httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] force 404 error
Date Wed, 15 Feb 2006 16:33:57 GMT
On 2/15/06, Uk1ah Sm1th <> wrote:
> I want to know if it is possible to force a 404 error even when a file
> or directory exist. I manage my website using svn. I pull a working copy
> into my htdocs directory. This also creates .svn directorys with svn
> meta data. Right now they return 403 forbiden. However I would like it
> if they could return 404 not found when the directory is typed in to the
> address bar. Such as: The file is there, but I
> want the user to see a 404.

RedirectMatch 404 \.svn
will probably work

AliaseMatch \.svn /path/to/nowhere


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message