View Single Post
Old 09-27-2011, 12:05 PM  
Bladewire
StraightBro
 
Bladewire's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Monarch Beach, CA USA
Posts: 56,229
Quote:
Originally Posted by CS-Jay View Post
Redirect traffic based on IP
I have GeoIP installed and this is what you can do in your htaccess

Options +FollowSymlinks
RewriteEngine on

RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(US|CN)$
RewriteRule ^(.*)$ https://youtube.com/watch?v=PGuoR1V2nFQ$1 [L]

The above sample code redirects American and Chinese traffic to this Youtube video



__________________


Skype: CallTomNow


Last edited by Bladewire; 09-27-2011 at 12:07 PM..
Bladewire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote