This article was previously published under Q161562
This article has been archived. It is offered "as is" and will no longer be updated.
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:
IMPORTANT: This article contains information about editing the registry.Before you edit the registry, make sure you understand how to restore it ifa problem occurs. For information about how to do this, view the "Restoringthe Registry" Help topic in Regedit.exe or the "Restoring a Registry Key"Help topic in Regedt32.exe.
If you need to use server-side includes with an extension otherthan the default specified by Microsoft Internet Information Server (.stmfiles), you need to add a new mime type for the extension by editing theregistry.
NOTE: Remember to stop all the Internet Services and then restart theInternet Services after making changes to the registry.
WARNING: Using Registry Editor incorrectly can cause serious problems thatmay require you to reinstall your operating system. Microsoft cannotguarantee that problems resulting from the incorrect use of Registry Editorcan be solved. Use Registry Editor at your own risk.
For information about how to edit the registry, view the "Changing Keys AndValues" Help topic in Registry Editor (Regedit.exe) or the "Add and DeleteInformation in the Registry" and "Edit Registry Data" Help topics inRegedt32.exe. Note that you should back up the registry before you edit it.
In the right pane, double-click ServerSideIncludesExtension to edit the string value. Replace the current default value (.stm) with (.shtml), that should be identical to the new mime mapping you created. Make sure the ServerSideIncludesEnabled value is set to 1.