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 iswww.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 www.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 ^(.*)$ http://it.domainanme.com/$1 [R=303,L]
Geolocalization and Redirection
mod rewrite;url rewriting;apache2;geolocation