如何在asp.net中重写url [英] how to rewrite url in asp.net
本文介绍了如何在asp.net中重写url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在asp.net 4.0中重写url。不显示实际网址。我想显示不同的网址。
任何人都可以告诉我该怎么做。
请帮助
i want to url rewriting in asp.net 4.0. to not show the actual url. i want to show different url.
anyone can tell how can i do this.
please help
推荐答案
如果您可以控制IIS等Web服务器,则可以创建虚拟目录,指向具有不同名称/路径的实际目录。
If you have control of the web server such as IIS, you make 'virtual directories' which point to the actual directory with different name/path.
请参阅此链接,它可能对您有所帮助
http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-模块 [ ^ ]
Refer this link it may be help you
http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module[^]
这篇关于如何在asp.net中重写url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文