How do I parse html files as shtml?

Parsing HTML Files as SHTML

 

To enable Server-Side Includes (SSI) processing in regular .html files, add this line to your .htaccess file:

AddHandler server-parsed .html

 

This tells Apache to parse SSI directives (like <!--#include virtual="/header.html" -->) inside .html files, not just .shtml files.

 

For modern websites, using PHP includes (<?php include 'header.php'; ?>) is a more flexible and widely supported alternative to SSI. But if you have an existing site that relies on SSI, the .htaccess directive above will enable it.

  • 484 Users Found This Useful

Was this answer helpful?

Related Articles

How can I change the default page / document?

Create a .htaccess file, include the below information into it and upload it to the public_html...

Default Nameservers

Ultra Web Hosting Default Nameservers   The nameservers for your hosting account are...

What perl modules are installed on the server?

Perl Modules on Our Servers   Our servers come with a wide range of Perl modules...

SSL - Creating a CSR in Windows 2003

Creating the CSR IIS Windows 2003 or 2000 Server: From Administrative Tools, run the Internet...

My pages are updating/refreshing slowly

Website Pages Loading or Updating Slowly   If your website pages are loading slowly or...



Save 30% on web hosting - Use coupon code Hosting30