httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] New post, Mod rewrite
Date Thu, 11 Dec 2003 07:43:08 GMT
Selmer Ausland wrote:
>     Thanks for your prompt respnse and assistance. Is this what you
> meant?
>
> RewriteRule .*/. http://www.mydomain.com/404 [L,R]

There are several ways you could do it. If you send your front page to the
bots, they will request all links on it, from which they will get the front
page, and might follow them again, etc. Could get nasty!

The simplest way might be:

    RewriteRule .* - [F]

If you want to serve a custom error document, you should do this:

    RewriteRule .* http://www.mydomain.com/404 [R=404,L]

Regards,
Robert Andersson


---------------------------------------------------------------------
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