I'm a bit of a newb in modrewrite but used it successfully on my server before.
I successful installed the module on my apache server and tested out with PHP test page(it correctly returned my area code) so I decided to test it out on a site and have it redirect to another page on it.
GeoIPEnable On
GeoIPDBFile /usr/local/share/GeoIP/GeoIP.dat Standard
GeoIPDBFile /usr/local/share/GeoIP/GeoLiteCity.dat Standard
RewriteEngine On
RewriteCond %{ENV:GEOIP_AREA_CODE} ^847
RewriteRule ^$ http://www.teetimelawncare\.com/lawncare\.html$1 [NC,QSA]
I simply get 500 Internal Server Errors every single time. Any idea why?
EDIT: I was having errors with my AddType x-mapp php5 line in my .htaccess file. Removing that allows it to work.