开发者

ASP.NET MVC Routing, "bin" as a route parameter value

开发者 https://www.devze.com 2023-01-01 06:23 出处:网络
We are developing an English-Turkish dictionary website. \"Bin\" means \"Thousand\" in Turkish. So when a user asks for http://tureng.com/search/bin we should show her the meaning of \"Bin\" in Engli

We are developing an English-Turkish dictionary website.

"Bin" means "Thousand" in Turkish. So when a user asks for http://tureng.com/search/bin we should show her the meaning of "Bin" in English. However, since /bin is a special directory, she got a 404.

Any ideas to solve it? Th开发者_运维百科anks.


This might help you: http://haacked.com/archive/2010/04/29/allowing-reserved-filenames-in-URLs.aspx Haven't tested it with "Bin" in path, but there is a good chance it will work.


Removing /bin from IIS 7 hiddenSegments, solved the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消