SSI on html Web Pages

From Lunarpages Web Hosting Wiki

Jump to: navigation, search

Want to make Sever Side Includes (SSI) work on .html web pages?

On a web hosting server, the .shtml has to be used when you use Sever Side Includes (SSI) on a server. You can override this behavior in your .htaccess file though.

To configure the server in a way so that on your hosting account .html files can use Server Side Includes, create a .htaccess file (or edit your current one) and add this to it:

AddType text/html .html
AddHandler server-parsed .html 

This will tell the server that it is, "OK" for .html files to use the Server Side Include code that you usually need .shtml files for.

Want to read this in another language?

Lunarpages Deal: Save $72 on your next Business web hosting plan! Starting at $18.95 per month, this an offer you can't miss. Perfect for business and e-commerce hosting sites, comes with free e-commerce tools and a TremenDesk Help Desk. Limited time offer!