URL structure for multi-language site

前端 未结 1 1377
野的像风
野的像风 2021-01-22 21:22

I want to make a multi-language site, but I\'m not sure what the best way is to deal with the URL structure from a SEO point of view. Some examples:

Product

相关标签:
1条回答
  • 2021-01-22 21:42

    (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).

    0 讨论(0)
提交回复
热议问题