配置IIS 7.5以启用服务器端包括(SSI)用于'.html'扩展名 [英] Configuring IIS 7.5 to enable server side includes (SSI) for the '.html' extension

查看:472
本文介绍了配置IIS 7.5以启用服务器端包括(SSI)用于'.html'扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在IIS 7.5中配置服务器端包含(SSI)。默认情况下,表示文件应作为SSI文件处理的文件扩展名是 .shtml 。但是,我想配置IIS,以便使用 .html 扩展名的文件作为SSI文件进行处理。这是为了让我通过更改名为 footer.html 的单个文件来更改多个 .html 页面的页脚。



这是可能的,如果是这样,是否有任何警告?



我也会接受针对替代方法的建议通过更改一个文件来更改多个HTML页面上的页脚。

解决方案

嘿,刚刚得到的答案只需要冲浪一些
这里是您可以配置IIS服务器的链接使用服务器端包含.html页面作为其为.shtml提供的默认页面,但我不想这样做。这个链接是非常有帮助的

http://tech.mikeal.com/blog1.php/server-side-includes-for-html-in-iis7


I want to configure Server Side Includes (SSI) in IIS 7.5. By default, the file extension that indicates that a file should be processed as an SSI file is .shtml. However, I want to configure IIS so that files with the .html extension are processed as SSI files. This is to enable me to change the footer for multiple .html pages by changing a single file named footer.html.

Is this possible, and if so, are there are any caveats?

I would also be receptive to suggestions for alternative approaches to changing the footer on multiple HTML pages by changing just a single file.

解决方案

Hey got the answer just needed to surf some more Here is the link where you can configure IIS server to use Server side include for .html pages as its default provided for .shtml but I didnt wanted that. this link is very helpful

http://tech.mikeal.com/blog1.php/server-side-includes-for-html-in-iis7

这篇关于配置IIS 7.5以启用服务器端包括(SSI)用于'.html'扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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