403 forbidden all *.axd files - aragh

≯℡__Kan透↙ 提交于 2019-12-04 09:03:54

URL rewrites on the web site are inherited by all child applications. One solution is to add this to your application web.config:

<system.webServer>
  <rewrite>
    <rules>
      <!-- remove parent rewrite rules -->
      <clear/>
    </rules>
  </rewrite>        
</system.webServer>

So the answer.

URL Rewrites are a killer.

I had a wordpress installation on a web application which was above the application I was having problems with. The wordpress installation was actually doing rewrites and because it wasn't a file or directory (wordpress default) it was rewriting any request that didn't have a physical corresponding file or folder.

If you're getting random errors, and you're using sub applications - look at the REWRITES!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!