ASP .NET中的URL重写 [英] URL rewriting in ASP .NET
本文介绍了ASP .NET中的URL重写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要为已运行的asp.net 4.0网站创建一个友好的网址。我听说过asp.net 4.0中的URL路由功能。我很难理解我需要在global.asax中添加的模式,
i想要网址www.ali.com/admin/defualt.aspx
to
www.ali.com/ defualt.aspx [ ^ ]
导演管理员是过滤器
I need to create a friendly urls to my asp.net 4.0 website which is already running. I heard of URL routing feature in asp.net 4.0. I am facing difficulty in understanding the patterns that i need to add in global.asax,
i want url www.ali.com/admin/defualt.aspx
to
www.ali.com/defualt.aspx[^]
director admin is filter
推荐答案
请参阅此处,他用global.asax和web.config解释
http://blog.dotnettechy.com/2011/09 /url-rewriting-in-aspnet-using.html [ ^ ]
-
在Global.asax中进行重写 [ ^ ]
Refer this here he explained with global.asax and web.config
http://blog.dotnettechy.com/2011/09/url-rewriting-in-aspnet-using.html[^]
--
Url Rewriting in Global.asax[^]
这篇关于ASP .NET中的URL重写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文