View Single Post
Old 09-08-2009, 09:08 AM  
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Or, you know..

install mod_geoip, and:

Code:
<IfModule geoip.c>
  GeoIPEnable On
  GeoIPDBFile /the/path/to/GeoIP.dat

  RewriteEngine on
  RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$
  RewriteRule ^(.*)$ http://www.qqq.com/$1 [L]
</IfModule>
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote