How to Target users by area or language

smashingcreativez

Junior Member
Joined
Dec 5, 2014
Messages
107
Reaction score
14
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 .
 
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)
 
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
 
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)

Thank u will try it out :)
 
Back
Top