Forum Moderators: phranque
Why does this .htaccessRewriteEngine on
RewriteCond %{HTTP_USER_AGENT} .*InfoPath\.2\)$
RewriteRule ^.* - [F]Not match the following UA?
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2)
I'm not sure why you need the leading ".*" in the second line?
It just makes Apache do excess processing!
"ends with Infopath.2 is both sufficient and clean.
The escape character \ for the ending parentheses ) is NOT required, whether it would stop the line from working, I'm unable to answer.
Don