如标题所述 - 我有一个类似以下的web.config文件,
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<authentication mode="Forms">
<forms name="login" protection="All" timeout="30" loginUrl="login" defaultUrl="~/">
<credentials passwordFormat="Clear">
<user name="admin" password="password" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
我希望能按照它所说的做...我想拒绝所有试图进入网站的用户。
它虽然起作用,但会重定向到一个我从未听说过的“Account/Login?ReturnUrl=%2flogin”网址...
有没有地方可以更改这个?