Server Side Includes
I have a wamp server installed. On it, I'm unable to include one html page into another using following command.
so far I have tried
- changing the extension to .shtml
- writing .htaccess file with the following two lines of code.
The .shtml works on my webhosting server, but nothing works on wamp server I have on my pc. I could have done it using php but the structure of my site uses simple .html extension throughout the site.
AddType text/html .html
AddHandler server-parsed .html
Where is the include? Is it in the same directory as the file?
Also, try adding a space after the ", e.g., <!--#include virtual="header.html" -->
i didn't think SSI's were used much anywhere anymore, some legacy sites i guess..but for a simple include it is still an elegant solution i guess
SSI's are still used, very much so.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)