![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Apr 2008
Posts: 1,567
|
Is there a simple way of doing this for affiliates? like some simple code they can put on the home page to redirect traffic from the UK to another site?
I need it as simple as possible for affiliates to get around without having to install anything on the server. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
So Fucking Banned
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
|
you can also redirect by browser language... it's not 100 % accurate however...
google how to do it ;-) oh wait, i have one url for you ;] http://www.htaccesstools.com/redirection-by-language/ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Industry Role:
Join Date: Apr 2008
Posts: 1,567
|
Quote:
Like the site though... |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Oct 2002
Posts: 3,745
|
Quote:
__________________
For historical display only. This information is not current: support@bettercgi.com ICQ 7208627 Strongbox - The next generation in site security Throttlebox - The next generation in bandwidth control Clonebox - Backup and disaster recovery on steroids |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
So Fucking Banned
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
|
Quote:
for australia it is: en-au, for usa it is en-us..... and so on.... however, like I told, it's not 100 % accurate, so I think your only other way is only by using geo IP redirect... ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: Sunny Fucking California
Posts: 1,575
|
Quote:
Code:
RewriteEngine on RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|HK|TW)$ RewriteRule ^(.*)$ http://someothersite.com/$1 [L]
__________________
“Ours is a world of nuclear giants and ethical infants. We know more about war than we know about peace, more about killing than we know about living. If we continue to develop our technology without wisdom or prudence, our servant may prove to be our executioner.” ― Omar Bradley (1948) |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Apr 2008
Posts: 1,567
|
Thanks for the answers, anyone else?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Oct 2002
Posts: 3,745
|
Also geo isn't anything like 100% accurate, as the main geo ip company, Maxmind, clearly states.
__________________
For historical display only. This information is not current: support@bettercgi.com ICQ 7208627 Strongbox - The next generation in site security Throttlebox - The next generation in bandwidth control Clonebox - Backup and disaster recovery on steroids |
![]() |
![]() ![]() ![]() ![]() ![]() |