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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -