|
|
|
||||
|
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: Jul 2001
Location: Utopia
Posts: 6,483
|
Redirecting surfers language based serverside, how to ...
Does anybody wanna share how we could best get a script that redirects visitors serverside so we can spare the serverload by using php scripts in the header?
__________________
seks.ai for sale - ping me |
|
|
|
|
|
#2 | |
|
Confirmed User
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
|
Quote:
with language redirects? That's the default install of Apache. Perhaps if you describe your problem in more detail. |
|
|
|
|
|
|
#3 | |
|
Master of Gfy.com
Industry Role:
Join Date: Feb 2002
Posts: 14,887
|
Quote:
they want a script that detects the persons country and sends them to an apropriate page i think |
|
|
|
|
|
|
#4 | |
|
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,483
|
Quote:
But instead of using a script (php/perl), we want it to be taken care of before they even hit a page, so we can send it to a paysite straight away. |
|
|
|
|
|
|
#5 | |
|
Confirmed User
Join Date: May 2002
Location: CT
Posts: 5,246
|
Quote:
|
|
|
|
|
|
|
#6 |
|
Confirmed User
Industry Role:
Join Date: Mar 2002
Location: c9media.com
Posts: 3,240
|
There is a script that will redirect based on the Language Version of Windows.
I can try to find it if you are interested for that... |
|
|
|
|
|
#7 | |
|
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,483
|
Quote:
I mean, if it is not too much trouble, I'd love to have it. All is better than nothing. |
|
|
|
|
|
|
#8 | |
|
Confirmed User
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
|
Quote:
From a fresh Apache install the default data directory; apache_pb.gif index.html.it index.html.ru.cp866 index.html.ca index.html.ja.jis index.html.ru.iso-ru index.html.cz index.html.kr.iso-kr index.html.ru.koi8-r index.html.de index.html.lu index.html.ru.ucs2 index.html.dk index.html.nl index.html.ru.ucs4 index.html.ee index.html.nn index.html.ru.utf8 index.html.el index.html.no index.html.se index.html.en index.html.po.iso-pl index.html.zh.Big5 index.html.es index.html.pt webmagick index.html.fr index.html.pt-br index.html.he.iso8859-8 index.html.ru.cp-1251 Now these correspond to the "magic" in the mime file for browser IDs. As in; 200 36426 "-" "Mozilla/4.79 [en] (Win98; U) ------------------------------------^^^ Asks for the "EN"glish page, index.html.en ... if you want something that redirects for an ISO country code, ANY domain based script and the ISO chart and some typing will get ya what you want. |
|
|
|
|
|
|
#9 | ||
|
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,483
|
Thanks Idiot
Would this also work if we were to setup a link to another URL, with h ttp:// ... instead of a html page on our server? Like this: Quote:
Quote:
|
||
|
|
|
|
|
#10 |
|
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
|
You might try a simple .htaccess file ?
http://www.askmrporn.com/wmh/wwwboar...ges/26285.html
__________________
|
|
|
|
|
|
#11 |
|
Confirmed User
Join Date: May 2001
Location: Baltimore, MD USA
Posts: 1,151
|
I was always told you couldn't use the language accept thingy in .htaccess, but I never tried it...
|
|
|
|
|
|
#12 |
|
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
okay i figured it out
add this to your .htaccess LanguagePriority en ErrorDocument 406 http://www.whatever.com then rename your pages with .en after it index.html.en index.php.en whatever you have add a .en to the end if they dont use english language they get redirected |
|
|
|
|
|
#13 |
|
Confirmed User
Join Date: Feb 2001
Location: UK
Posts: 543
|
<spam>
We're about 2 weeks away from launching a piece of software that runs server side, that can be setup to redirect on browser language, IP country lookup, or a combo of both. Coded in C, so we should have some tasty performance figures. Can redirect the surfer to an internal/external page, or show images/html transparently based on country/language/both. </spam> hit me up on [email protected] if it sounds of interest to you. |
|
|
|
|
|
#14 |
|
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
yeah but you will sell it..
i just gave it for free |
|
|
|
|
|
#15 | |
|
Confirmed User
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
|
Quote:
"mime magic" setup then you can redirect to any language that you have the .XX extention to. After all your languages are checked the default fallback is your index.html Hyper: That was a fresh directory dump, not the contents of a file. Sorry the unix line feeds didn't come through in the message. |
|
|
|
|
|
|
#16 | |
|
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
Quote:
i just figured if you add those lines to your htaccess and rename all your files to end in .en if its not an english browser it wont find anything else.. and thus redirect. but yeah i saw that language priority must be setup in the server config i had to see if i had that installed if the loaded server modules have : mod_negotiation then it 99% is set |
|
|
|
|
|
|
#17 | |
|
Confirmed User
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
|
Quote:
If you want to take it offline, I'll see what I can do about giving you a hand with your actual config files. Hit me up at [email protected] |
|
|
|
|
|
|
#18 |
|
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
i'm all set i got it to work that way.
but i appreciate the offer. i was trying to explain to the original poster how i got it to work. besides youarelazy.com also alot of people are on virtual and they dont have access to the conf files. so now they have 2 ways to do it |
|
|
|
|
|
#19 | |
|
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,483
|
Quote:
|
|
|
|
|
|
|
#20 |
|
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
lol
i found this list too if people need it af Afrikaans ar-ae Arabic(U.A.E.) ar-bh Arabic(Bahrain) ar-dz Arabic(Algeria) ar-eg Arabic(Egypt) ar-iq Arabic(Iraq) ar-jo Arabic(Jordan) ar-kw Arabic(Kuwait) ar-lb Arabic(Lebanon) ar-ly Arabic(Libya) ar-ma Arabic(Morocco) ar-om Arabic(Oman) ar-qa Arabic(Qatar) ar-sa Arabic(Saudi Arabia) ar-sy Arabic(Syria) ar-tn Arabic(Tunisia) ar-ye Arabic(Yemen) be Belarusian bg Bulgarian ca Catalan cs Czech da Danish de German(Standard) de-at German(Austrian) de-ch German(Swiss) de-li German(Liechtenstein) de-lu German(Luxembourg) el Greek en English en English(Caribbean) en-au English(Australian) en-bz English(Belize) en-ca English(Canadian) en-gb English(British) en-ie English(Ireland) en-jm English(Jamaica) en-nz English(New Zealand) en-tt English(Trinidad) en-us English(United States) en-za English(South Africa) es Spanish(Spain - Modern Sort) es Spanish(Spain - Traditional Sort) es-ar Spanish(Argentina) es-bo Spanish(Bolivia) es-cl Spanish(Chile) es-co Spanish(Colombia) es-cr Spanish(Costa Rica) es-do Spanish(Dominican Republic) es-ec Spanish(Ecuador) es-gt Spanish(Guatemala) es-hn Spanish(Honduras) es-mx Spanish(Mexican) es-ni Spanish(Nicaragua) es-pa Spanish(Panama) es-pe Spanish(Peru) es-pr Spanish(Puerto Rico) es-py Spanish(Paraguay) es-sv Spanish(El Salvador) es-uy Spanish(Uruguay) es-ve Spanish(Venezuela) et Estonian eu Basque fa Farsi fi Finnish fo Faeroese fr French(Standard) fr-be French(Belgian) fr-ca French(Canadian) fr-ch French(Swiss) fr-lu French(Luxembourg) gd Gaelic(Scots) gd-ie Gaelic(Irish) he Hebrew hi Hindi hr Croatian hu Hungarian in Indonesian is Icelandic it Italian(Standard) it-ch Italian(Swiss) ja Japanese ji Yiddish ko Korean ko Korean(Johab) lt Lithuanian lv Latvian mk Macedonian ms Malaysian mt Maltese nl Dutch(Standard) nl-be Dutch(Belgian) no Norwegian(Bokmal) no Norwegian(Nynorsk) pl Polish pt Portuguese(Standard) pt-br Portuguese(Brazilian) rm Rhaeto-Romanic ro Romanian ro-mo Romanian(Moldavia) ru Russian ru-mo Russian(Moldavia) sb Sorbian sk Slovak sl Slovenian sq Albanian sr Serbian(Cyrillic) sr Serbian(Latin) sv Swedish sv-fi Swedish(Finland) sx Sutu sz Sami(Lappish) th Thai tn Tswana tr Turkish ts Tsonga uk Ukrainian ur Urdu ve Venda vi Vietnamese xh Xhosa zh-cn Chinese(PRC) zh-hk Chinese(Hong Kong) zh-sg Chinese(Singapore) zh-tw Chinese(Taiwan) zu Zulu |
|
|
|
|
|
#21 | |
|
Confirmed User
Join Date: Feb 2001
Location: UK
Posts: 543
|
Quote:
The code we write can be sold. Its not an apache configuration, (though an apache module is one of the next things in the pipeline). Its a standalone foreign traffic management program. Shows you historical stats about your foreign traffic (on language or IP/country), can serve dynamic content so your user doesn't see a change in filename, they just see a banner targetted to them, or html targetted to them, or redirect the visitor to certains sites. It also can handle a nice heavy load (though to be honest we've not got to the stress testing phase, but we are looking at big numbers). I guess its the next step up for people interested in tapping into the foreign market, it gives them more control of what foreign surfers view, and where they are sent. depends what you want to do with your foreign traffic really. Rich. |
|
|
|
|