httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <rbo...@rcbowen.com>
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: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