本文介绍了如何将www.site/index.html显示为www.site/index的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好, 我有一个包含的网站 1-几个.html页面 2个.aspx页 即它是html和asp应用程序的混合体. 我想执行问题主题中提到的网址屏蔽/重写任务. 用谷歌搜索并尝试了许多文章/解决方案. 需要进一步的专家意见来解决.. 注意: 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 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
发布评论