如何将www.site.com/index.html显示为www.site.com/index

编程入门 行业动态 更新时间:2024-10-24 04:33:59
本文介绍了如何将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

本文发布于:2023-11-01 11:59:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1549273.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   www   site   index   html

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!