语义网址与.NET点 [英] Semantic urls with dots in .net

查看:149
本文介绍了语义网址与.NET点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使语义网址搜索页面,但是如果有人用在点完搜索时,.NET引擎返回404

I'm trying to make semantic urls for search pages, but if someone use a search finished in dot, the .net engine return a 404.

请求甚至没有得到路由引擎,所以我觉得它的东西与安全相关的或类似的东西。

The request don't even get to the routing engine, so i think its something related to security or something like that.

例如,在计算器航线也不要在这些情况下工作: <一href="http://stackoverflow.com/questions/tagged/etc.">http://stackoverflow.com/questions/tagged/etc.

For example, the stackoverflow routes also don't work in these case: http://stackoverflow.com/questions/tagged/etc.

推荐答案

如果您使用的是.NET 4.0和IIS 7 +,你可以使用这个标志在你的web.config的system.web节,它会被允许

If you are using .NET 4.0 and IIS 7+, you can set this flag in the system.web section of your web.config and it will be allowed:

<httpRuntime relaxedUrlToFileSystemMapping="true" />

我已经测试了它和它的作品。 哈克有它的一个解释。

I've tested it and it works. Haack has an explanation of it.

这篇关于语义网址与.NET点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆