Sometimes, your website doesn't load .inc files like the footer. inc of your ASP .net website. The .inc is a part of the #include directive used to create functions, footer, or element which is reused on multiple pages on your website.
It is necessary to add ServerSideInclude IIS handler mapping so that .inc files can load properly on website elements like header and footer.
Please following the below steps to add ServerSideInclude IIS handler mapping at IIS:
- Log in to your Windows server via RDP.
- Open IIS Manager and browse to your website.
- Click on Handler Mappings.
- There will be an action bar at the top right corner. Click on Add Module Mapping.
- set the following parameters and click OK.
Request Path = *.htm
Module = ServerSideIncludeModule
Name = SSI-htm - Click OK.
Once the above handler mapping is added, the server will start serving include files .inc and header, footer elements will look properly.