Best practices for multi language site across different sub domains

前端 未结 3 1178
遇见更好的自我
遇见更好的自我 2021-01-13 19:27

I am looking to build a site in ASP.NET. I need it to be in french and english with the domains setup like so:

en.mysite.com fr.mysite.com

I do not want to

3条回答
  •  一生所求
    2021-01-13 20:04

    If I'd be implementing this, I'd do this: map the en.mysie.com to www.mysite.com/page?lang=en map the fr.mysite.com to www.mysite.com/page?lang=fr

    and then in master page, set your language according to the param using globalization, and asp.net pages will automatically served in that language if they find correct app_localresource file with the same language code.

    Hope this helps

提交回复
热议问题