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

What are some tools are available to optimize my website?

There are many great tools to optimize your website. There is an optimize tool in your hosting...

How can I tell how much disk space I have available?

Article Updated This article has been consolidated Disk space information is now part of...

Why do I get emails for cron jobs?

Stopping Emails From Cron Jobs   By default, cron sends you an email with the output of...

How do I cancel my account?

General | Updated 2026 If you need to cancel your hosting account with Ultra Web Hosting, you...

Common Search Engine Optimization Tips

Get other websites to link to you. Have your website linked and posted in socal media...



Save 30% on web hosting - Use coupon code Hosting30