如何将www.site.com/index.html显示为www.site.com/index [英] how to show www.site.com/index.html as www.site.com/index
本文介绍了如何将www.site.com/index.html显示为www.site.com/index的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个包含
的网站
1-几个.html页面
2个.aspx页
即它是html和asp.net应用程序的混合体.
我想执行问题主题中提到的网址屏蔽/重写任务.
用谷歌搜索并尝试了许多文章/解决方案.
需要进一步的专家意见来解决..
注意: I want to perform this task withoug involing web.config file.
Hi All,
I have a website which contains
1- few .html pages
2- few .aspx pages
i.e. its kind of a blend of html and asp.net application.
i want to do the url masking/rewriting task like mentioned in the Question''s subject.
Have googled and tried many articles/solutions.
Needs further expert''s opinion for resolution..
NOTE: I want to perform this task withoug involing web.config file.
推荐答案
自.NET 4开始,您可以使用EnableFriendlyUrls [
Since .NET 4 you can use EnableFriendlyUrls[^] for your site...
如果您使用的是Asp.Net,请参考4.0起,
IntroducingASPNETFriendlyUrlsCleanerURLsEasierRoutingForASPNETWebFormss [ ^ ]
Refer if you are using Asp.Net 4.0 onwards,
IntroducingASPNETFriendlyUrlsCleanerURLsEasierRoutingForASPNETWebForms[^]
这篇关于如何将www.site.com/index.html显示为www.site.com/index的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文