On Sun, Mar 2, 2014 at 3:27 PM, Darren Ward (darrward)
<[email protected]> wrote:
> Thanks
>
> Still can't get this string to be matched though
>
>     RewriteCond %{HTTP_USER_AGENT} ^CaptiveNetworkSupport*
>     RewriteRule ^(.*)$ /library/test/success.html [PT]
>
> Isn't matching:
>
> wifi-tc:192.168.104.39 - - [28/Feb/2014:11:02:42 +1100] "GET 
> /ah66Mlma/GwaqQ1ka.html HTTP/1.0" 200 334 "-" "CaptiveNetworkSupport-277 
> wispr"
> wifi-tc:192.168.104.39 - - [28/Feb/2014:11:15:08 +1100] "GET 
> /NLHHvH2Y/Z4CXHCDW/Q9VhrIWd/x3O3upE2.html HTTP/1.0" 200 334 "-" 
> "CaptiveNetworkSupport-277 wispr"
>
> Logic seems ok and the regex is a simple one...

The trailing * is probably unintended.  Likely your rewrite is in the
wrong vhost / unused htaccess if it appears to never match AND you
can't get trace.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to