Use Web.config To Allow Server-side Includes In HTML Files (IIS)
In IIS 7.5, is it possible to use web.config alone to enable SSI processing for files that have the .html extension? Specifically, I don't want to use the default SSI extension, .s
Solution 1:
Presuming that your hoster has enabled SSI's and delegated Read/Write permissions for handler mappings then this should work:
<configuration>
<system.webServer>
<handlers>
<add name="SSINC-html"
path="*.html"
verb="*"
modules="ServerSideIncludeModule"
resourceType="File"
requireAccess="Script" />
</handlers>
</system.webServer>
</configuration>
Whilst we're on the topic, Robert McMurray (MSFT IIS staffer) has a fairly recent refresher blog post all about SSI's here:
Post a Comment for "Use Web.config To Allow Server-side Includes In HTML Files (IIS)"