title: Redirecting traffic using GeoIP and .htaccess
body: <p>I'm trying to redirect web traffic from Argentina to a certain page from our website, and all the other traffic to a different page, using GeoIP and .htaccess.</p>
  
  <p>This is an example of what I'm trying to use (in this example, I'm using only two countries, Argentina and Colombia.)</p>
  
  <pre><code>GeoIPEnable On
  
  # Redirect Colombia
  RewriteEngine on
  RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CO$
  RewriteRule ^(.*)$ http://www.mywebsites.com.ar/index2.html [L]
  
  # Redirect Argentina
  #RewriteEngine on
  #RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^AR [NC]
  #RewriteRule ^(.*)$ http://www.mywebsite.com.ar/index.html [L]
  </code></pre>
  
  <p>Thing is, it doesn't work. </p>
  
  <p>I also tried this:</p>
  
  <pre><code>RewriteCond %{ENV:GEOIP_COUNTRY_CODE} !^AR$
  </code></pre>
  
  <p>instead of declaring every single country I want to redirect, but didn't work, either.</p>
  
  <p>Can anyone spot the problem?</p>
  
  <p>Thanks in advance,</p>
  
  <p>Ignacio</p>