I have the following setup in my Web.Config
:
<authentication mode="Forms">
<forms loginUrl="Landing/Login.aspx" defaultUrl="~/Member/Dashboard.aspx">
<credentials passwordFormat="SHA1"></credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
This correctly redirects when testing on locahost, but when published to Azure, logging in just redirects to http://mysite.azurewebsites.net/
and not http://mysite.azurewebsites.net/Member/Dashboard.aspx
as described in the Web.Config. Interestingly enough, however, trying to navigate to a page without logging in correctly redirects to the defined loginUrl="Landing/Login.aspx"
. Should I be using the FQDN in this case for the defaultUrl
? Are forms authentication not setup on IIS of my Azure server? Please advise.