How it decides which Site to return when domains are like 'http://mysite.com/foo' and entering URL is 'http://mysite.com/'

Hi guys,

first of all…I love Umbraco and I think that this is a great community :smiley:

I think that I had seen some post related to my question, but I can’t find it…

So, pointing to my question… I’ve an Umbraco installation with 2 Sites and I set up the domains like this:

when entering the http://mysite.com/ in the web browser, Umbraco returns the content of the site (Site 1).

So I’m questioning what’s the flow that Umbraco follows? (like, since none of the domains are exactly “htttp://mysite.com” Umbraco returns the first Site?)

And what I also would like to know is what are your suggestions/best practices to guarantee that if someone access http://mysite.com Umbraco ‘redirects’ for one of sites (http://mysite.com/foo or http://mysite.com/bar) according to the Culture detected in the Request.
This Umbraco installation is hosted online, so I can’t control the IIS server.

Note: please notice that I put redirects between quotation marks, because maybe exists some approach that avoid a real “301 Permanent Redirect”.

Thanks in advance.
Regards


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/84350-how-it-decides-which-site-to-return-when-domains-are-like-httpmysitecomfoo-and-entering-url-is-httpmysitecom