lucy24 - 2:25 am on May 20, 2013 (gmt 0)
SetEnvIf User-Agent Mozilla/4.0 (Windows 98; US) Opera 10.00 [en] GoAway=1
Ouch. I hope that wasn't a literal quote from htaccess. What mod_setenvif thinks this means is:
If the user-agent is "Mozilla/4.0"
then set this list of environmental variables:
GoAway, which gets the specific value of 1. Frankly you're lucky this didn't result in locking out all UAs containing the string "Mozilla/4.0" (robots plus all but the latest versions of MSIE). For that matter, maybe you did lock them out, you just didn't notice :)
Remember that in Apache, a literal space very often has semantic meaning. So it needs to be either escaped or hidden inside quotation marks. Some mods let you go either way; some are more particular. In mod_setenvif, quotation marks are enough.
Incidentally, there is a useful shorthand in mod_setenvif. When matching against the user-agent, you can say
With the opening anchor, this rule-- in any module-- will only work on user-agents that begin "windows 98". With lower-case w, because Regular Expressions are case sensitive unless you've particularly told them not to be.