URL重写 - 动态生成重写映射? [英] URL Rewrite - dynamically generate rewrite maps?

查看:118
本文介绍了URL重写 - 动态生成重写映射?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


是否可以动态生成重写地图?我的产品目录中有数百种产品,因此无法为每种可能性添加键/值对。


例如www.somedomain.com/products.aspx?id=1应重写为www.somedomain.com/products/fitness


或者有更好的方法来处理这个问题吗?



谢谢,


David。

解决方案

大卫,

我正在试图弄清楚这个问题的最佳解决方法 - 你能不能再向我们提供一些关于你在这里想做什么的信息?你在做映射吗?这是否与应用程序请求路由有关?


http:/ /learn.iis.net/page.aspx/570/application-request-routing-version-2 /


http://learn.iis.net/tags/ARR/default.aspx

感谢,
<无线电通信/>版

Hi,

Is it possible to dynamically generate rewrite maps?  I have hundreds of products in my product catalogue so it isn't feasible to add a key/value pair for each possibility.

 e.g. www.somedomain.com/products.aspx?id=1 should rewrite to www.somedomain.com/products/fitness

Or is there a better way of handling this?

 

Thanks,

David.

解决方案

Hi David,

I'm trying to figure out where this is best addressed - could you please give us a bit more info about what you are trying to do here?  WHere are you doing your mapping?  Is this related to Application Request Routing?

http://learn.iis.net/page.aspx/570/application-request-routing-version-2/

http://learn.iis.net/tags/ARR/default.aspx

Thanks,

Ed


这篇关于URL重写 - 动态生成重写映射?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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