In the DNS I have setup multiple URLs for my website (all pointing to same server). The entries in DNS looks like as below:
Host TTL Numeric IP
www .mysite.net 7200 192.168.31.12
@ (None) .mysite.net 7200 192.168.31.12
mycompany .mysite.net 7200 192.168.31.12
I wrote a code on Login.aspx page to check the URL and navigate to appropriate company login page. So if I type www.mysite.net or mysite.net then I am getting navigated to standard login page. But when I type mycompany.mysite.net still I am getting navigated to standard login page. But when I type https://mycompany.mysite.net then I am getting navigated to company specific login page. Why I need to type complete URL with https to get navigated to compay specific login page? Why it is not working just with mycompany.mysite.net? Any help of this is highly appriciated.