【发布时间】:2013-07-02 20:05:11
【问题描述】:
我刚刚安装了 ImageResizer.Net 库来测试调整大小功能。我用 nuget 安装了它,几秒钟后它开始运行,但不是我喜欢的方式。我想要一个像/images/{width}/{height}/name.ext 这样的简洁的url 重写,而不是像?width=100&height=200 这样的旧而丑陋的查询字符串。
我通过Application_Start() 和PipelineConfig.Rewrite 使用正则表达式实现了它,但想知道什么是最好的解决方案,尤其是在速度方面?
【问题讨论】:
标签: .net asp.net-mvc-4 httpmodule friendly-url imageresizer