unplugged_web Posted January 28, 2010 Share Posted January 28, 2010 I wonder if somebody could help me please. I'm trying to set up GEO targeting on a site so that people will be redirected to the right page depending on the country they're from. I think I need to do this in the .htaccess file, but I'm not sure and would be grateful for any assistance.This is what I'm trying to use: <IfModule mod_rewrite.c>RewriteEngine onRewriteRule ^$ app/webroot/ [L]RewriteRule (.*) app/webroot/$1 [L]RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^US$ [NC]RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^UM$ [NC]RewriteRule ^(.*)$ http://myredirection.url [R,L]</IfModule> Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.