Multi-lingual websites with ASP.NET MVC

后端 未结 2 433
一整个雨季
一整个雨季 2020-12-03 02:19

When building a multi-lingual website (with ASP.NET web forms), I\'ll use an HTTP module to rewrite the URLs to end up with something friendly (for humans & search engin

2条回答
  •  無奈伤痛
    2020-12-03 02:31

    You can do this, but keep in mind that not all countries are languages. For example, en-gb is the usual representation for British English, or more specifically, the Great Britain locale for English content, for example. If you can, it's worth following the RFC1766-derived conventions for language-LOCALE.

    Search engines actually tend to do a fairly good job dealing with content-negotiation, by the way, so you need not necessarily have separate URIs for the same content in different languages. Google Japan will crawl with ja-JP as the accept language header, for example.

提交回复
热议问题