We have a website that is hosted on IIS7 and which is bound to several domains. The site is localized in multiple languages and part of the URL holds the language code, for example www.mysite.com/en, www.mysite.com/cs, www.mysite.com/hu, etc.
When the user requests the website under a country level domain, we would like to redirect them to the main (.com) domain, but add a language parameter, so that this should happen:
- user requests www.mysite.cz -> gets redirected to www.mysite.com/cs
- user requests www.mysite.hu -> gets redirected to www.mysite.com/hu
Is this possible with IIS URL Rewrite Module 2.0? If so, how do I do this?