New ASP.NET 4.0 Web routing rules based on domain country extension?

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2010-04-07T08:28:46Z Indexed on 2010/04/07 8:33 UTC
Read the original article Hit count: 304

Filed under:
|
|

Consider multiple domains (with different country extensions) that go to one singe physical website. Depending on the country extension of the domain, I want to route to a specific subfolder while keeping the active domain!

Examples: www.mydomain.com/we/about-us.aspx to www.mydomain.com/content/com/we/about-us.aspx www.mydomain.fr/we/about-us.aspx to www.mydomain.fr/content/fr/we/about-us.aspx www.mydomain.be/we/about-us.aspx to www.mydomain.be/content/be/we/about-us.aspx

Is this possible with the new web routing features in ASP.NET 4.0?

Thanks,

Nick

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about 4.0