Make SSI work on HTML Pages

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.

© Lunarpages Web Hosting – Also, don’t forget to follow @lunarpages on Twitter!

Make SSI work on HTML Pages

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.

© Lunarpages Web Hosting – Also, don’t forget to follow @lunarpages on Twitter!