Geo Redirects
Permalink
I'm gone build a multi-language site using C5. Any one ever thought about the use of Geo Redirects? Would be nice to point users to their language automaticly.
Any one got an idea on how to realise this? I know there are some scripts out there. But hopefully someone has some experience setting this up?
Cheers,
Kris
Any one got an idea on how to realise this? I know there are some scripts out there. But hopefully someone has some experience setting this up?
Cheers,
Kris
Hi!
Geolocation is only usefull for you if you want to something usefull with the data. Because most geo-ip databases are expensive.
My attempt to do multilingual sites with c5 is following:http://www.concrete5.org/index.php?cID=16230...
I'll keep on posting, when I got news.
cheers
Fernandos
Geolocation is only usefull for you if you want to something usefull with the data. Because most geo-ip databases are expensive.
My attempt to do multilingual sites with c5 is following:http://www.concrete5.org/index.php?cID=16230...
I'll keep on posting, when I got news.
cheers
Fernandos
Thank you for both replies. Also found out about the browser language recognition. For know I think this approach will be sufficient. Also might work better in countries like Belgium with 2 main languages. I figure a ip-list might not work as sufficient in such a case.
Though it will be better in other cases, it's not worth it in this stage.
Though it will be better in other cases, it's not worth it in this stage.
this is what I'm doing most of the time.. Also because the geoip module isn't installed on every server. Without it, you need to add a few more php code lines compared to browser language detection.
It's also nice because tourists get the correct result. (an American in Switzerland get's an english page if he's using an English browser)
It's also nice because tourists get the correct result. (an American in Switzerland get's an english page if he's using an English browser)
hi!
I finished the code for language detection plus cookies to save a request the next time. Now I'd like to implement it on the home page (root). But where do I put the php code??
I finished the code for language detection plus cookies to save a request the next time. Now I'd like to implement it on the home page (root). But where do I put the php code??
Okay, I managed to get everything working, as I finish my corp project. I'll be releasing this for free as a block.
we then set a session on what country the person should be on, and do some thinking about override/priority.. (as in:
1)if no choice is made, use IP list
2)if they pick from some list of countries in the site footer, use that
3)if they're logged in as a user and that user is in a country, use that...
depending on how your site is setup you might change that around and whatnot, but thats the general approach we use.
happy to help set it up for you as a couple hour consulting project if you'd like: franz at concrete5.org