View Single Post
Old 01-17-2012, 07:06 AM  
sponsorpimp
Confirmed User
 
sponsorpimp's Avatar
 
Industry Role:
Join Date: Apr 2008
Posts: 1,567
htaccess redirect rule help needed.

I want to redirect GB visitors to a diffrent URL by using htaccess I have tried the code below with no luck at all can anyone help!

RewriteEngine On
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^GB$
RewriteRule ^(.*)$ http://gb.example.com$1 [L]



Thanks
__________________
sponsorpimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote