Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想拦截 FormAuthentication 302 重定向代码,它检查用户是否可以查看页面,如果他不是,模块将用户发送到'/login.aspx?ReturnURL="Requestedpage.aspx"。我想在这里添加自定义查询字符串。
编辑:URL 重写对我不起作用。我只想拦截该代码。我也想从那里设置自定义标题。
使用URL 重写设置规则,以便将 URL/login.aspx?ReturnURL="Requestedpage.aspx重写为您需要的任何内容。
/login.aspx?ReturnURL="Requestedpage.aspx