![]() |
![]() |
![]() |
||||
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 |
SO FUCKING SCAMMED
Industry Role:
Join Date: Mar 2010
Location: UK
Posts: 1,389
|
Redirect to sponsor based on geo or language
Trying to find a solution for this:
Wanting to redirect URL base on vistors geo location or browser language: EG. Visitor clicks link: Geo location or browser language EN-GB = redirects to sponsor A, EN-US = to Sponsor B, IT = to sponsor C, ES = to sponsor D. Pretty much how geolocation redirect of a site works, but set individually per URL. I initially thought it would be quite simple using htaccess redirect for each URL but struggling. Any help, tips or point me in the direction of a guide. ![]()
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
Did you configured geo database ?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Nov 2022
Posts: 391
|
<script>
switch(navigator.language) { case 'en-GB': redirectURL='url targeting UK people' break; case 'en-US': redirectURL='url targeting USA people' break; case 'en-AU': redirectURL='url targeting AUSTRALIA people' break; case 'fr-FR': redirectURL='url targeting FRANCE people' break; case 'es-ES': redirectURL='url targeting SPAIN people' break; case 'it': redirectURL='url targeting ITALY people' break; case 'de-DE': redirectURL='url targeting GERMANY people' break; case 'en-CA': redirectURL='url targeting english speaking canadian people' break; case 'fr-CA': redirectURL='url targeting french speaking canadian people' break; default: redirectURL='url targeting anyone in any area not set above' } </script> |
![]() |
![]() ![]() ![]() ![]() ![]() |