How to enable Server Side Includes (SSI) using htaccess?

If you are using Server Side Includes SSI in your HTML files, and they are not working, you most likely need to enable them in your [.htaccess] file. Add the following code in the [.htaccess] file towards the top.

Option 01:

AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes
AddHandler server-parsed .html .htm

Option 02:

Options +Includes
AddHandler server-parsed .html

  • 72 Users Found This Useful
Was this answer helpful?

Related Articles

How to secure your htaccess file?

For security reasons, the [.htaccess] file contents should not be visible to the public. To...

Error uploading large files (memory, HTTP or timeout error)

Change the following values in the [.htaccesss] file to upload large files:...

How to change PHP configuration (memory, upload limit, and others) using the .htaccess file?

  PHP configuration (directives) like PHP memory limit, maximum upload size, post max size, and...