如何在asp.net中写入URL重写? [英] How to Write URL rewrite in asp.net?
本文介绍了如何在asp.net中写入URL重写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在asp.net中编写URL重写代码?
例如::::
示例 - - > http://localhost/1245/sample.aspx
但是我想要http:// localhost / 1245 / sample
AND
vinod ----> http://localhost/sample/vinod.aspx
但我想要http:// localhost / 1245 / sample / vinod
plz帮帮我
plz
plz
How to write URL rewrite code in asp.net?
For Example::::
Sample --->http://localhost/1245/sample.aspx
but i want http://localhost/1245/sample
AND
vinod---->http://localhost/sample/vinod.aspx
but i want http://localhost/1245/sample/vinod
plz help me
plz
plz
推荐答案
这取决于您使用什么来为ASP.NET站点/应用程序提供服务。如果这是IIS,您可以从本文中学习它: http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module [< a href =http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module\"target =_ blanktitle =新窗口> ^ ]。
另见我最近的回答:在asp.net web项目中隐藏url c#? [ ^ ] 。
-SA
It depends on what do you use to serve your ASP.NET sites/applications. If this is IIS, you can learn it, for example, from this article: http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module[^].
See also my recent answer: hide url in asp.net web project c# ?[^].
—SA
这篇关于如何在asp.net中写入URL重写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文