What does this code do?

Discussion in 'Apache' started by DarrenC, Jul 27, 2006.

  1. #1
     
    RewriteEngine  on 
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} NI[NC] 
    RewriteRule ^$ http://www.nigeria.domain.com [L]
    
    Code (markup):
    Does it look at the country code and then send the visitor to a website if the country code is Nigeria?
     
    DarrenC, Jul 27, 2006 IP
  2. iatbm

    iatbm Prominent Member

    Messages:
    5,151
    Likes Received:
    352
    Best Answers:
    0
    Trophy Points:
    360
    #2
    yes it sends everyone from .ni domain to that page but you have to have mod_geoip installed
     
    iatbm, Jul 27, 2006 IP