Url rewriting 在IIS 8中使用URL授权和URL重写
我有一个Wordpress站点托管在IIS8上,所以它使用URL重写。我试图在IIS中使用URL授权来限制对自定义页面的访问,但我认为重写会造成干扰 下面是my web.config的代码片段Url rewriting 在IIS 8中使用URL授权和URL重写,url-rewriting,web-config,iis-8,Url Rewriting,Web Config,Iis 8,我有一个Wordpress站点托管在IIS8上,所以它使用URL重写。我试图在IIS中使用URL授权来限制对自定义页面的访问,但我认为重写会造成干扰 下面是my web.config的代码片段 <location path="cr-upload"> <system.webServer> <security> <authorization> &
<location path="cr-upload">
<system.webServer>
<security>
<authorization>
<remove users="*" roles="" verbs="" />
<add accessType="Allow" roles="myDomain\myGroup" />
</authorization>
</security>
</system.webServer>
</location>
cr upload是页面的URL。Windows集成身份验证已启用并正在运行。我用这个方法成功地限制了对目录和index.php的访问(作为测试),但我似乎无法限制对正在重写URL的页面的访问
有什么想法吗?移动规则
<security>
<authorization>
<remove users="*" roles="" verbs="" />
<add accessType="Allow" roles="myDomain\myGroup" />
</authorization>
</security>
在web.config文件中的URL重写规则上方