1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Target users by area or language

Discussion in 'Cloaking and Content Generators' started by smashingcreativez, Sep 16, 2016.

Tags:
  1. smashingcreativez

    smashingcreativez Registered Member

    Joined:
    Dec 5, 2014
    Messages:
    92
    Likes Received:
    8
    Occupation:
    Saiyan
    Location:
    Earth
    I have a multi language site for example for spain i have
    es.example.com and for france i have fr.example.com
    I need to target user by the area . So if a person opens the site from spain he must be redirected to es.example.com can anyone suggest a good cloaking tool for tat .
     
  2. SebWgnr

    SebWgnr Registered Member

    Joined:
    Apr 19, 2016
    Messages:
    75
    Likes Received:
    57
    Home Page:
    Well you have a few solution:
    - Using a GeoIP database: https://www.maxmind.com is the best for that, they offer both free and paid solution
    - Using a GeoIP API: just Google it, you'll find a lot of websites providing that kind of service (it usually free unless you have a lot of traffic)
    - Use Javascript: "window.navigator.language" will return the language of the browser, so if someone in France have his browser set to spanish you'll redirect him to the Spanish version (which is not a bad thing since someone using a browser in a certain language probably want to see all the websites in that language)
     
  3. redarrow

    redarrow Elite Member

    Joined:
    Apr 1, 2013
    Messages:
    6,007
    Likes Received:
    1,455
    You use mod rewrite
    Or
    Redirect


    There all sub domains and sub domains dont index in google at all

    Whatever .com. Usa
    Whatever .co.uk Uk
    Whatever.fr French

    If you need the urls to index in google you need to buy the correctvcountry exstention or your have problams indexing them.


    You dont even need to do this you can get a google translater added to the page to display therecountry lanuage free from google.

    https://translate.google.com/manager/website/

    Might help
     
  4. smashingcreativez

    smashingcreativez Registered Member

    Joined:
    Dec 5, 2014
    Messages:
    92
    Likes Received:
    8
    Occupation:
    Saiyan
    Location:
    Earth
    Thank u will try it out :)