Need some help configuring IIS to support a multi lingual site.

My application supports a language parameter. For example, www.mysitename.com
renders the site in english and www.mysitename.com/default.aspx?lang=fr
will render the site in french.

I want customers to be able to access the french site by using the url
www.monsitenom.com. So, www.monsitenom.com should "redirect" to
www.monsitenom.com/default.aspx?lang=fr.

How do I set this up?

Thanks.

Re: Multi Lingual Site by David

David
Sat Jun 21 17:26:03 CDT 2008

On Jun 21, 4:13=A0am, mike <b_na...@yahoo.ca> wrote:
> Need some help configuring IIS to support a multi lingual site.
>
> My application supports a language parameter. For example,www.mysitename.=
com
> renders the site in english andwww.mysitename.com/default.aspx?lang=3Dfr
> will render the site in french.
>
> I want customers to be able to access the french site by using the urlwww=
.monsitenom.com. So,www.monsitenom.comshould "redirect" towww.monsitenom.co=
m/default.aspx?lang=3Dfr.
>
> How do I set this up?
>
> Thanks.


Why don't you make your webpage auto-select language by the "Accept-
Language" header instead of a querystring "Lang" variable?

If you auto-select, all you need to do is add "www.monsitenom.com" to
the list of Hostnames alongside "www.mysite.com" and the website will
automatically choose the right language depending on what the user
selects.

No need for hacky redirections and everything looks perfectly
integrated.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: Multi Lingual Site by mike

mike
Sun Jun 22 07:31:04 CDT 2008

Unfortunately, the site has already been developed. Ideally, we'ld
prefer the leave it as is. Can this be supported via IIS?

On Jun 21, 6:26=A0pm, David Wang <w3.4...@gmail.com> wrote:
> On Jun 21, 4:13=A0am, mike <b_na...@yahoo.ca> wrote:
>
> > Need some help configuring IIS to support a multi lingual site.
>
> > My application supports a language parameter. For example,www.mysitenam=
e.com
> > renders the site in english andwww.mysitename.com/default.aspx?lang=3Df=
r
> > will render the site in french.
>
> > I want customers to be able to access the french site by using the urlw=
ww.monsitenom.com. So,www.monsitenom.comshould"redirect" towww.monsitenom.c=
om/default.aspx?lang=3Dfr.
>
> > How do I set this up?
>
> > Thanks.
>
> Why don't you make your webpage auto-select language by the "Accept-
> Language" header instead of a querystring "Lang" variable?
>
> If you auto-select, all you need to do is add "www.monsitenom.com" to
> the list of Hostnames alongside "www.mysite.com" and the website will
> automatically choose the right language depending on what the user
> selects.
>
> No need for hacky redirections and everything looks perfectly
> integrated.
>
> //Davidhttp://w3-4u.blogspot.comhttp://blogs.msdn.com/David.Wang
> //


Re: Multi Lingual Site by David

David
Sun Jun 22 21:34:01 CDT 2008

IIS can support just about anything a webserver can do. This is
software, so it is just a matter of time, effort, and money. And the
design of the software involved as well as the configuration
determines how much of each.

In your case, your web application requires something to remap between
hostnames and URLs. i.e.
www.monsitenom.com -> www.mysitename.com/default.aspx?lang=3Dfr
www.mysite.com www.mysitename.com/default.aspx?lang=3Den

There are many places to put the code to do this remapping on IIS:
1. It can be done within the application itself, but using Accept-
Language instead of Querystring("lang") as the mapping
2. It can be done with a third-party module like IIS_Rewrite, where
you have one IIS website answering all the Hostnames,