如何从我的网站页面中删除.html? [英] How do I remove .html from my website pages?
本文介绍了如何从我的网站页面中删除.html?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个网站,但我不希望它最后显示.html像[删除垃圾邮件链接]
至少如果它显示[垃圾邮件链接被删除]没有.html
I have a website but i dont want it to show .html at the end like [Spam link removed]
At least if it shows [spam link removed] without .html
推荐答案
你可以参考这个链接
how-to-remove-html-from-url [ ^ ]
希望它会有所帮助...
You can refer this link
how-to-remove-html-from-url[^]
Hope it will help...
解决方案是你可以在MVC中构建你的应用程序或者你可以重写你的URL
i给你一些参考链接请查看它。
.NET / IIS / ASP.NET的开源URL重写器 [ ^ ]
使用ASP.NET重写URL的示例 [ ^ ]
ASP.NET中的URL重写 [ ^ ]
IIS URL重写和ASP.NET路由 [ ^ ]
为URL重写模块创建重写规则 [ ^ ]
提示/技巧:网址重写使用ASP.NET [ ^ ]
重定向ASP.NET使用IIS重写模块进行无扩展的旧版URL [ ^ ]
The solution is that You can built your application in MVC or You can rewrite your URL
i gave you some reference links just look in to it.
Open Source URL Rewriter for .NET / IIS / ASP.NET[^]
An Example of URL Rewriting With ASP.NET[^]
URL Rewriting in ASP.NET[^]
IIS URL Rewriting and ASP.NET Routing[^]
Creating Rewrite Rules for the URL Rewrite Module[^]
Tip/Trick: Url Rewriting with ASP.NET[^]
Redirecting ASP.NET Legacy URLs to Extensionless with the IIS Rewrite Module[^]
你可以在webconfig中编写这样的代码
You can write code like this in webconfig
<rewrite>
<rules>
<!--<rule name="json to aspx" stopProcessing="true">
<match url="(.*)\.json
这篇关于如何从我的网站页面中删除.html?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文