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 do I cancel my account?

We are sorry to hear you would like to cancel your account! If there is anything we can do,...

Some visitors in China and Russia cannot reach my website

Visitors in Certain Countries Cannot Reach My Website   If visitors in specific countries...

What is this Code 304 appearing in my stats?

HTTP Status Code 304 in Your Website Statistics   A 304 status code means "Not...

SSL - Creating a CSR in Windows 2003

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

Meta Redirect

Adding this code to your web page will redirect your visitors to any address that you have...



Save 30% on web hosting - Use coupon code Hosting30