使用web.config隐藏页面扩展 [英] hide extensions of the pages with web.config

查看:110
本文介绍了使用web.config隐藏页面扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何隐藏页面的扩展名?

How do I hide the extensions of the pages?

示例...像正常的asp页面一样进行访问,但是我想以...而没有...的情况下访问该页面. asp

Example ... access as is the normal asp page, but I would like to access the page or pages as ... without. asp

在我的情况下,我想要在web.config中

In my case I want it in web.config

谢谢!

推荐答案

如果要隐藏动态页面,则应在IIS>处理程序映射中使用ExtensionlessUrlHandler-ISAPI-4.0_64bit的行

If hiding dynamic page you should have in IIS > Handler Mappings a line with ExtensionlessUrlHandler-ISAPI-4.0_64bit

如果是静态页面,则IIS有一个静态文件错误,您需要应用修补程序(如果尚未应用) http://support.microsoft.com/kb/2646735

If static page, IIS has a bug for static files and you need to apply a hotfix (if not applied yet) http://support.microsoft.com/kb/2646735

之后,您需要添加到Web.Config system.webServer部分

after that you need to add to your Web.Config system.webServer section

这篇关于使用web.config隐藏页面扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆