IIS托管应用程序ReturnURL [英] IIS Hosted Application ReturnURL
问题描述
我有一个Web应用程序,托管在服务器的IIS 7中。在IIS中我应用了url - www.example.com。
当我尝试使用URL转到应用程序时,它会自动更改这样的URL - http://www.example.com/Account /Login.aspx?ReturnUrl=%2f
如果我第一次使用正确的凭据,登录页面也不会重定向到我的默认页面。如果我第二次点击登录,则会显示我的默认页面。
是否可以更改网址,例如www.example.com/Account/Login.aspx,当我转到www.example.com网址时。
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.
推荐答案
step1:收听转到项目的属性然后使用Visual Studio开发服务器
或
步骤2:按启用或禁用Windows身份验证时按f4键,否则
step3:添加到web配置在appsetting
add key =autoFormsAuthenticationvalue =false
add key =enableSimpleMembershipvalue =false
并且还检查授权我认为它可能对你有效检查所有可能性
谢谢
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
这篇关于IIS托管应用程序ReturnURL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!