.shtml include not working

2.2k views Asked by At

I am trying to include files using :-

<!-- #include virtual="partials/footer.shtml" -->

This is not working. I am using WebStorm IDE by JetBrains

I tried adding .htaccess file

# Enable server side includes
Options +Includes

# pass .html files to the server for parsing
AddHandler server-parsed .html

But still it doesn't seem to work.

1

There are 1 answers

1
Stacy J On

I got it working. It seems like the space between <!-- and #include was the problem

<!--#include file="partials/footer.shtml"-->

When I added the above with file instead of virtual, it worked.