asp.net - URL not redirecting to default page -
i have website developed in asp.net. have hosted in iis , url www.web.com. whenever request page typing url in browser redirected login page url www.web.com/login.aspx?returnurl=%2f.
i have added following in web.config make default.aspx default page.
<defaultdocument> <files> <clear/> <add value="default.aspx"/> </files> </defaultdocument>
also,
<forms loginurl="login.aspx" defaulturl="~/default.aspx">
the pages present on root folder, tried few things mentioned here. there else missing ? direction towards solution or links helpful.
edit: website redirects default.aspx when run on localhost
a couple of minor differences, may help. assume using iis 7 or higher.
if @ same folder level, can try:
<forms loginurl="logon.aspx" defaulturl="default.aspx"/>
you can try:
<defaultdocument enabled="true"> <files> <clear/> <add value="default.aspx"/> </files> </defaultdocument>
Comments
Post a Comment