如何在global.asax中的Application_BeginRequest处进行URL重写? [英] how can i do URL rewriting at Application_BeginRequest in global.asax?
本文介绍了如何在global.asax中的Application_BeginRequest处进行URL重写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如,如果原始网址为
,我想更改整个网址
I want to change the whole url for example if the original url is
http://localhost:1110/Product.aspx?catId=2001
而不是我想要
instead of this i want
http://localhost:1110/Product/2001.aspx
我该如何实现呢?...谢谢.
how can i achive this...Thanks in advance.
推荐答案
这里是链接
http://blog.dotnettechy.com/2011/09/url-rewriting- in-aspnet-using.html [ ^ ]
Scott Guthrie的一个很好的解释
http://weblogs.asp. net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx [
Here is a link
http://blog.dotnettechy.com/2011/09/url-rewriting-in-aspnet-using.html[^]
A very nice explanation from Scott Guthrie
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx[^]
这篇关于如何在global.asax中的Application_BeginRequest处进行URL重写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文