Best practice for URLs of multi-language websites

前端 未结 3 2038
花落未央
花落未央 2021-01-17 11:58

What is considered the best strategy for URLs of translated websites? Something I see happen frequently is:

http://example.com/english-slug.html
http://examp         


        
3条回答
  •  生来不讨喜
    2021-01-17 12:39

    Another way is setting the language as a query string parameter, such as:

    http://example.com/hello-world?hl=en

    http://example.com/hallo-welt?hl=de

    for example Google Flights web site uses this method.

提交回复
热议问题