Redirecting surfers language based serverside, how to ...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Naughty
    Confirmed User
    • Jul 2001
    • 6478

    #1

    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
  • some_idiot
    Confirmed User
    • May 2002
    • 1511

    #2
    Originally posted by Naughty
    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?
    Ok... WinXX doesn't support PHP, so what's the problem
    with language redirects? That's the default install of
    Apache.

    Perhaps if you describe your problem in more detail.

    This AVS pays my mortgage!

    Comment

    • Pipecrew
      Master of Gfy.com
      • Feb 2002
      • 14888

      #3
      Originally posted by some_idiot


      Ok... WinXX doesn't support PHP, so what's the problem
      with language redirects? That's the default install of
      Apache.

      Perhaps if you describe your problem in more detail.

      they want a script that detects the persons country and sends them to an apropriate page i think

      Comment

      • Naughty
        Confirmed User
        • Jul 2001
        • 6478

        #4
        Originally posted by Pipecrew



        they want a script that detects the persons country and sends them to an apropriate page i think
        Exactly!

        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.
        seks.ai for sale - ping me

        Comment

        • foe
          Confirmed User
          • May 2002
          • 5246

          #5
          Originally posted by some_idiot


          Ok... WinXX doesn't support PHP, so what's the problem
          with language redirects? That's the default install of
          Apache.

          Perhaps if you describe your problem in more detail.
          php runs on windows + IIS and windows + apache..... Im running php in xp now

          Comment

          • sexyclicks
            Confirmed User
            • Mar 2002
            • 3240

            #6
            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...

            Comment

            • Naughty
              Confirmed User
              • Jul 2001
              • 6478

              #7
              Originally posted by sexyclicks
              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...
              If it is serverside, all is good
              I mean, if it is not too much trouble, I'd love to have it. All is better than nothing.
              Last edited by Naughty; 07-27-2002, 03:37 PM.
              seks.ai for sale - ping me

              Comment

              • some_idiot
                Confirmed User
                • May 2002
                • 1511

                #8
                Originally posted by Pipecrew



                they want a script that detects the persons country and sends them to an apropriate page i think
                Country or Language?


                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.

                This AVS pays my mortgage!

                Comment

                • Naughty
                  Confirmed User
                  • Jul 2001
                  • 6478

                  #9
                  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:

                  apache_pb.gif index.html.it index.html.ru.cp866
                  index.html.jp index.html.ja.jis http://sponsor.com
                  or should it be:
                  apache_pb.gif index.html.it index.html.ru.cp866
                  http://sponsor.com index.html.jp index.html.ja.jis
                  Thanks again.
                  Last edited by Naughty; 07-28-2002, 02:55 AM.
                  seks.ai for sale - ping me

                  Comment

                  • Brujah
                    Beer Money Baron
                    • Jan 2001
                    • 22157

                    #10
                    You might try a simple .htaccess file ?
                    http://www.askmrporn.com/wmh/wwwboar...ges/26285.html

                    Comment

                    • Chris R
                      Confirmed User
                      • May 2001
                      • 1151

                      #11
                      I was always told you couldn't use the language accept thingy in .htaccess, but I never tried it...

                      Comment

                      • hyper
                        Confirmed User
                        • Mar 2002
                        • 5294

                        #12
                        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

                        Comment

                        • richard
                          Confirmed User
                          • Feb 2001
                          • 543

                          #13
                          <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.

                          Comment

                          • hyper
                            Confirmed User
                            • Mar 2002
                            • 5294

                            #14
                            yeah but you will sell it..

                            i just gave it for free

                            Comment

                            • some_idiot
                              Confirmed User
                              • May 2002
                              • 1511

                              #15
                              Originally posted by hyper
                              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
                              Right, and if you lack the LanuagePriority and have the
                              "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.

                              This AVS pays my mortgage!

                              Comment

                              • hyper
                                Confirmed User
                                • Mar 2002
                                • 5294

                                #16
                                Originally posted by some_idiot


                                Right, and if you lack the LanuagePriority and have the
                                "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.
                                well you know more about it then i do..

                                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
                                Last edited by hyper; 07-28-2002, 06:30 AM.

                                Comment

                                • some_idiot
                                  Confirmed User
                                  • May 2002
                                  • 1511

                                  #17
                                  Originally posted by hyper

                                  well you know more about it then i do..

                                  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

                                  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]

                                  This AVS pays my mortgage!

                                  Comment

                                  • hyper
                                    Confirmed User
                                    • Mar 2002
                                    • 5294

                                    #18
                                    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
                                    Last edited by hyper; 07-28-2002, 06:44 AM.

                                    Comment

                                    • Naughty
                                      Confirmed User
                                      • Jul 2001
                                      • 6478

                                      #19
                                      Originally posted by hyper
                                      i was trying to explain to the original poster how i got it to work.

                                      besides youarelazy.com
                                      You talkin' bout ME?
                                      seks.ai for sale - ping me

                                      Comment

                                      • hyper
                                        Confirmed User
                                        • Mar 2002
                                        • 5294

                                        #20
                                        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

                                        Comment

                                        • richard
                                          Confirmed User
                                          • Feb 2001
                                          • 543

                                          #21
                                          yeah but you will sell it..
                                          Of course

                                          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.

                                          Comment

                                          Working...