4

我想制作一个多语言网站,但我不确定从 SEO 的角度处理 URL 结构的最佳方法是什么。一些例子:

产品

example.com/product/123/en/product-name

或者

example.com/product/123/product-name/en

或其他?

类别

example.com/Category/en/furniture/chair/

或者

example.com/Category/en/120/chair/

或者

example.com/Category/en/chair/

或其他?

4

1 回答 1

5

(忽略 SEO 方面,因为它在 Stack Overflow 上是题外话。)

将语言标记作为第一个路径段是最常见的约定。这是有道理的,特别是如果你翻译路径(你应该这样做!),因为路径代表一个层次结构:

最上面的条目是主页:

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

从那里,您选择一个产品:

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

或者一个类别:

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

如果在路径中间或末尾的某处有语言标签,则不允许浏览 URL(至少不是以合理的方式,带有翻译的路径)。

于 2015-12-04T12:48:15.947 回答