Should default language of multilingual website be a part of the URL? [closed]
Asked Answered
C

2

12

I have set up a multilingual website, whose default language is English and it is translated in many more languages. We have chosen for the subdirectory URL strategy, so that our URLs are like example.com/en, example.com/fr etc. Should the default language be omitted from those URLs? So instead of

  • example.com/en
  • example.com/fr
  • example.com/de

we could use

  • example.com (default site language, EN in this case)
  • example.com/fr
  • example.com/de

Which is better in terms of SEO, UX, best practices?

p.s. I have read this and this but focus is given on whether translation of URLs is optimal and they do not really address my question. FYI, in my case, either the English wording is retained (example.com/en/about, example.com/fr/about) or in cases when this is not possible, the URL is transliterated.

Colostomy answered 11/7, 2016 at 14:12 Comment(2)
You should check out a prior answer to this question here: #21985664Anhwei
Possible duplicate of Best practice multi language websiteReact
D
4

I think representing the default language in the URL is the better choice.

Pros:

  • If you decide to change the default language, you don’t have to change your URLs.
  • Consistency.
  • It allows you to redirect from / based on the visitor’s language preference.
  • It’s a signal that your site is available in multiple languages.
  • It’s easier for users that want to change the language from the URL.
  • It allows users of external search engines to search for pages in the default language only (site:example.com/en/; where site:example.com/ would find pages in all languages).

Cons:

I can’t think of any reasons not to include the default language’s code in the URL.

Dairying answered 13/7, 2016 at 23:40 Comment(3)
If yes, how to deal with homepage? You can not have same content on example.com/ and example.com/en/... so? What do you recommend? Redirect example.com/ to example.com/en... or vice versa example.com/en to example.com/ ?? And with 302 or 301?Alissaalistair
@MatějKříž: example.com/ only gets shown to users who type it manually (search engines will index example.com/en etc.), so this root page should lead users to their language variant. See my answer on Webmasters SE.Dairying
@MatějKříž You should use redirect which redirects from / to language subdirectory, /en/ or /pl/ based on browser's preferred language for example. Users never should stay on root. You can do redirects with .htaccess if you using Apache.Henpeck
H
0

This is not a scientific answer, but we have our root url adaptive to the browser language. Eg.

www.supertext.ch -> Either FR, EN or DE based on the browser

everything else is

www.supertext.ch/en/help  
www.supertext.ch/de/hilfe

I would always translate the subdirectory. That helps in terms of SEO AND UX.

Herra answered 12/7, 2016 at 7:22 Comment(2)
I would refrain from serving different content based on browser language due to SEO and URL consistency reasons. Maybe a better approach would be to redirect the user just on their very first visit to the correct language.Mercedezmerceer
I would have agreed with you, but even Google thinks that is ok to serve different languages on the same page (Automatically redirect users or dynamically serve the appropriate HTML content depending on users’ location and language settings): webmasters.googleblog.com/2014/05/…Herra

© 2022 - 2024 — McMap. All rights reserved.