URL重写的.NET [英] URL Rewriting on .NET

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

问题描述

我怎样才能acheive双向方向改写到会发生以下情况的入站到Web服务器

How can I acheive bi direction rewriting to where the following occurs inbound to the web server

www.mysite.com/region/program/cat1/cat2/cat3

www.mysite.com/region/program/cat1/cat2/cat3

将请求发送到所述服务器

sends the request to the server

www.mysite.com/program.ASPX?idregion=(regionlookupnumber)及idcategory = 3276

www.mysite.com/program.ASPX?idregion=(regionlookupnumber)&idcategory=3276

和服务器时会写它上面的转换它的其他方式。

and when the server is going to write the above it converts it the other way.

双向URL使用URL重写包上IIS7重写。我们不希望如果可能的修改源$ C ​​$ C。

Bi-directional URL rewriting on IIS7 using the URL rewriting package. We don't want to modify the source code if possible.

任何建议或资源或样品,请联系?

Any advise or resource or sample link please?

推荐答案

我这样做是使用自动友好的URL网址的模板重写包2.0
它的作品真的很好。你只需要确保只有重新写你真正需要的URL。如果你重新写IMG,链接等,例如标签,它可以打破你的网页。

I did this using the automatic friendly url template of the url rewriting package 2.0 It works really well. You just need to make sure to only re-write the urls you really need to. If you re-write img, link, etc. tags for instance, it can break your page.

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

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