开发者

Django i18n and SEO

开发者 https://www.devze.com 2022-12-18 20:44 出处:网络
how开发者_JS百科 do you prepare i18n in your websites? I mean what do you do avoid the situation when you search for i18ned websites in Polish you get English description cause English is the default

how开发者_JS百科 do you prepare i18n in your websites? I mean what do you do avoid the situation when you search for i18ned websites in Polish you get English description cause English is the default one.

Thanks in advance, Etam.


I give every language version it's own URL. So English version of an article would be avialiable under http://example.com/en/my-article, and a version in Polish under http://example.com/pl/my-article (or if you really care about SEO even under http://example.com/pl/moj-artykul).

Had I given all version the same URL (and switched content dynamically) Google would have indexed only one version, and users couldn't find the article using keywords from any other language. I also think having distinct URLs people can link to for every version is more user friendly.

0

精彩评论

暂无评论...
验证码 换一张
取 消