开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜