如何隐藏我网站中的.aspx扩展? [英] How to hide the .aspx extension in my website?
问题描述
如何隐藏网页的扩展名,例如我有(例如:product.aspx)页面,但我想显示产品如何隐藏.aspx扩展名。
我尝试了什么:
我在网上搜索但没有得到任何明确的解决方案。帮助我。
它被称为URL重写,谷歌有很多很多例子。
以下是这里找到的文章,例如:网址重写 - Google搜索 [ ^ ]
How to hide extension of webpages for example i have (ex: product.aspx) page but i want to display products how to hide .aspx extension. 这篇关于如何隐藏我网站中的.aspx扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
1. URL重写(上面给出)
2. ASP.NET路由
with 'HttpApplication.Context.RewritePath'的帮助你可以重写URL
见下面的代码片段
.Net技术:如何隐藏ASP.Net网页名称或.aspx扩展名 [ ^ ]
3.使用HttpModule使用IIS7执行无扩展URL重写
见下面的链接,对你有所帮助
ScottGu博客 - 提示/技巧:使用ASP.NET重写网址 [ ^ ]
What I have tried:
I have search through online but don't get any clear solutions.Help me.It's called "URL rewriting" and google has many, many examples.
Here are the articles it found here, for example: URL Rewriting - Google Search[^]There are couple of ways to hiding URL
1. URL rewriting (given above)
2. ASP.NET routing
with the help of 'HttpApplication.Context.RewritePath' you can re-write URL
see below snippet
.Net Technology: How to hide ASP.Net web page name or .aspx extension[^]
3. Using an HttpModule to Perform Extension-Less URL Rewriting with IIS7
4. ISAPIRewrite to enable Extension-less URL Rewriting for IIS5 and IIS6
see below link, it will be helpful to you
ScottGu Blog - Tip/Trick: Url Rewriting with ASP.NET[^]