Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a web application, hosted in IIS 7 in the server. In IIS i applied url - www.example.com.
when i try go to the application using the URL, it automatically changing the URL like this - http://www.example.com/Account/Login.aspx?ReturnUrl=%2f
if i use the correct credentials also at the first time, the login page is not redirect to my default page. if i click the login second time, my default page is appear.

Is it possible to change the url like www.example.com/Account/Login.aspx, when i go to the www.example.com URL.
Posted
Comments
Prasad Avunoori 27-Aug-14 0:46am    
Which template are you using? Delete that "Acccount" Folder from your project.
[no name] 27-Aug-14 0:55am    
Im using microsoft web application template

1 solution

step1: Listen Go to the Properties of the project And Then and Use The Visual Studio Development Server
Or
Step2: Press f4 key on enable or disable windows authentication or else

step3:add to web config in appsetting
add key="autoFormsAuthentication" value="false"
add key="enableSimpleMembership" value="false"

and also check about authorization i think it may work for you check this all posibilities

thanks
 
Share this answer
 
Comments
[no name] 28-Aug-14 6:45am    
I already added the web config details, but still same issue...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900