URL结束行在ASP.NET MVC4中具有%20和%3f字符以及转义片段

时间:2016-10-03 07:16:51

标签: c# asp.net-mvc-4

我收到了以下网址

http://www.test.com/News/-News-mainnews-detail_42.html%E2%80%9D%20target=  

 http://www.local.com/News/News_mainnews_83.html%20

我在web.config中添加了以下行:

<system.web>
<httpRuntime relaxedUrlToFileSystemMapping="true" />
</system.web>

这个在我当地工作。但也不能在Live中运行。它重新调整Not Found The requested document was not found on this server.

有没有可以在现场运行的解决方案?

0 个答案:

没有答案