I'd like to get rid of multilingual stuff in URLs, i.e. to get site.com/page
instead of en.site.com/page
, site.com/en/page
, and site.com/page?lang=en
.
The motivation is: humans don't need the stuff. One can get page?lang=de
link by searching some German phrase or browsing some German-speaking community. What Accept Language
does he/she have? So, SE is the only party, which needs messy URLs because of poor (lack of) Accept Language
support. Search engines try to understand all languages, while humans do know which one they need. I'd like to keep messy URLs for crawlers only, and to show clean ones to humans whenever possible.
Questions:
- What's wrong with my motivation?
- There's no way to substitute messy URLs by clean ones in search results, isn't it?
- Do SEs take
window.location
into account? Is it dangerous to clean URL bar via JS? - Unlike Google that allows to link localizations together via sitemap, Yandex wants
<link rel="alternate" hreflang="...
to be inside pages' code. Do I need to synchronize these tags withwindow.location
?