URL structure for multi-language site

99封情书 提交于 2019-12-01 23:44:29
unor

(Ignoring the SEO aspect, as it’s off-topic on Stack Overflow.)

Having the language tag as the first path segment is the most common convention. And it makes sense, especially if you translate the path (which you should!), because the path represents a hierarchy:

The top entry is the homepage:

  • example.org/en
  • example.org/de

From there, you select a product:

  • example.org/en/product/123/chair
  • example.org/de/produkt/123/stuhl

Or a category:

  • example.org/en/category/furniture
  • example.org/de/kategorie/möbel

If having the language tag somewhere in the middle or at the end of the path, it wouldn’t allow for browsable URLs (at least not in a sensible way, with translated paths).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!