View Single Post
Old 08-06-2002, 12:04 PM  
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
Quote:
Originally posted by m00d
ok 12clicks, answer me this un plz....

Whats wrong with the below syntax. I am trying to block all
non-english web browsers from my site. The below seems to
work but not on IE6.0 for some strange reason...
Can u help?...

RewriteCond %{ENV:HTTP_ACCEPT_LANGUAGE} !^en
RewriteRule .* http://GoAway.com/ [R]


P.S. I must do this in the htaccess or httpd.conf , I can' use java, php, or asp to help me. They won't work for my application.

Thx!
The HTTP headers are not in ENV, they are in the HTTP variable.

RewriteCond %{HTTP:Accept-Language} !^en
RewriteRule .* http://GoAway.com [R,L]
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote