httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <>
Subject Re: [users@httpd] mod_rewrite everything but one file?
Date Wed, 23 Mar 2005 21:31:43 GMT
joshua hough wrote:
> I am new to mod_rewrite and want to set up my first rule to redirect all
> requests to another domain -- except for the file "robots.txt" in the
> root. Extensive research has not helped me compose an adequate rule.
> Thanks in advance,

Prefix your rewrite rules with

RewriteCond %{REQUEST_URI} !^/robots.txt

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