Search code examples
.neturliisaccess-denied

Access denied on main url


When I try to enter my.domain.com I get

403 - Forbidden: Access is denied.

But when I enter my.domain.com/Login.aspx it works fine.

Where do I redirect the main url to the login page, in web.config or in IIS? Or is there a better solution to this?


Solution

  • Try to add your Login.aspx to your default document of IIS.

    Below are the steps to do so

    Step - 1 Select your wesbite IIS enter image description here

    Step - 2 Add "Login.aspx" here enter image description here