Hot answers tagged

1

x-default used to be necessary but Google has since updated their guidelines and now only recommend x-default for pages that either: automatically redirect the user (based on IP address or browser settings) to the appropriate language/region page, or Are country/language chooser pages where the user selects their preferred lang and are taken to that ...


1

Maybe this would help? RewriteEngine On RewriteCond %{QUERY_STRING} !(^|&)lang=en(&|$) [NC] RewriteCond %{HTTP_HOST} ^www\.myweb\.com\/index.html$ [NC] RewriteRule ^ %{REQUEST_URI}?lang=en [L,R=301,QSA] Only for homepage on addon domain (assuming your addon domain is http://YourAddOn.Domain.com): RewriteEngine On RewriteCond %{QUERY_STRING} ...



Only top voted, non community-wiki answers of a minimum length are eligible