httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hernan gonzalez <>
Subject sample regex patterns are mildly confusing
Date Fri, 08 Apr 2011 14:03:31 GMT
Issue commented here

It feels redundant and confusing to me to write (a single example
among many others in the docs) :

             RewriteCond  %{HTTP_USER_AGENT}  ^Mozilla.*

when the .* is really not need - confusing, because it might lead to
believe that Apache is trying a full match, i.e. matching the full

It would be neater and cleaner to write instead

              RewriteCond  %{HTTP_USER_AGENT}  ^Mozilla


H. Gonzalez

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message