rewriting geoip php part (incomplete)