httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <>
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 .*/. [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 .* [R=404,L]

Robert Andersson

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