I have published two websites under the Default Web Site node in IIS:
> Default Web Site
> Site1
> Site2
The idea is that they should reply to the following URL:
- localhost/Site1
- localhost/Site2
The website is protected by authentication therefore the first page is the login page. The URL I get is as follows:
http://localhost/Site1/Account/Login?ReturnUrl=%2fSite1
After I put username and password the website is not able to redirect me to the home page and always land in the login page (even though the authentication is completed correctly, because if I write an URL of the website, this will work correctly).
But, if I force the starting URL to (adding a backslash at the end):
http://localhost/Site1/Account/Login?ReturnUrl=%2fSite1/
The website works properly. Moreover, the website works properly even if I publish it as a standalone website (not an application of the Default Web Site):
> Default Web Site
> Site1
> Site2
Am I missing something in my IIS configuration?