: Geolocalization and Redirection I have a multilanguage website. My project was to add the Geolocalization so base on the country that open the site to redirect in the specific url with the right
I have a multilanguage website.
My project was to add the Geolocalization so base on the country that open the site to redirect in the specific url with the right language.
The structure of the website is
domainname (main domain)
it.domainname (subdomains for the languages)
de.domainname (subdomains for the languages)
All works fine but today i realize that i have the following problem.
When someone from Italy try to open the website will be redirect to it.domainname.
BUT if he wants to click in Flag of Emglish site(which is the domain) redirected again to the it.domainname. If wants to open any other language of the site it's not has a problem.
My rule in .htaccess is the following:
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^IT$
RewriteRule ^(.*)$ it.domainanme.com/ [R=303,L]
More posts by @Heady270
1 Comments
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.