Support

Admin Tools

#26209 URL redirect based on country and language

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by iamalive on Thursday, 29 September 2016 03:37 CDT

iamalive
 Hi
I have a multilanguage site because I have to offer different prices depending on users country.

I've used the joomla multilanguage method, not Falang to build the site

I'd like to be able to automatically redirect users from specific languages and countries to the relevant urls, as I don't want them picking and choosing prices.

Can you help me construct .htaccess to do this?

Thanks

David

tampe125
Akeeba Staff
Hello David,

Joomla automatically tries to detect your browser language and redirects you to the according language.
Users, however, can change the language, there's no "binding".

Sadly you can't do that using an .htaccess file, since you should analyse the language and the IP of the user, then try to detect the country from the IP and finally redirect the user.
You'll need a component to do that, you should take a look at the JED if there's anything that can do redirects based on the country and the language.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

iamalive
OK

Thanks for the feedback, Davide.

Regards
David

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!