Home  >  Article  >  Web Front-end  >  网站网页生成.shtml访问无法显示_html/css_WEB-ITnose

网站网页生成.shtml访问无法显示_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:53:32876browse

网站换了服务器后发现shtml网页无法访问,原因是没有注册.shtml扩展名,解决方法如下

IIS6.0解析shtm,shtml文件由于IIS6.0的安全性较以前有特别大的改进,所以在很多功能默认情况下都是关闭的,前几天刚把这个困扰了我好久的问题给解决了.嘿嘿.费话不多说了,开始

打开IIS管理器,打开“本地计算机”的属性??》MIME类型??》新建
后缀名:.shtml
MIME类型:text/html

后缀名:.shtm
Mime类型:text/html

然后点击确定。找到Web服务扩展,把“在服务端的包含文件”扩展启用,就可以了。(必须重新启动IIS,否则还是无法访问!)
在IIS的定义中,.shtml是SSI组件的一种,必须要把这个启用了。然后你把解析.shtml的程序正确安装,就OK了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn