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

Do you have a firewall?

Firewall and Security Protection   Yes, every server in our hosting fleet is protected by...

Can I change my username?

Usernames are setup in the manner for security. Most programs will allow you to save the...

Creating a Form Button

Creating a Form Button in HTML   You can create clickable form buttons using standard HTML....

Why do I get emails for cron jobs?

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

What perl modules are installed on the server?

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



Save 30% on web hosting - Use coupon code Hosting30