httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter pilsl <>
Subject [users@httpd] return 404 for specific url ?
Date Thu, 16 Mar 2006 12:06:16 GMT

I want to configure a virtual host to return 404 for a specific request

I tried mod_rewrite

RewriteRule ^/(forbidden_.*) - [R=404]

but this does not work. Also didnt find anything in mod_alias.

I would need to redirect to a nonexisting url, so the browser would 
receive a 301 first and then get the 404, which is not what I need !! 
The first answer need to be a 404.  I hope there is a solution inside 
apache, otherwise I would need to rewrite my application to return 404 


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