On Sat, Jan 24, 2009 at 6:31 PM, André Warnier <[email protected]> wrote:
> Sorry to butt in, but is it not just the RewriteCond that is badly written ?
> So should
> RewriteCond $1 !=robots.txt
> not be
> RewriteCond %1 !=robots.txt
No, The logic in the RewriteCond referring back to the RewriteRule
backreference is just fine.
You might argue that referencing %{REQUEST_URI} is easier for humans
to grok in simpler (capture of the entire URI) cases. However, when
there is a relation between your Condition and your original capture,
it's nice to express it that way directly.
--
Eric Covener
[email protected]
---------------------------------------------------------------------
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: [email protected]
" from the digest: [email protected]
For additional commands, e-mail: [email protected]