How to enable Server Side Includes (SSI) in your .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. This article will teach you how to enable SSI Server Side Includes in your .htaccess.

Steps to enable SSI Server Side Includes

  1. Log into your cPanel.
  2. Go to your File Manager. Select the public_html directory and click Go.

    Important! Make sure you have the "show hidden files" box selected before you click Go. The .htaccess file is a hidden file and will not be seen if the "show hidden files" box is not checked.

  3. Find your .htaccess in your public_html and edit it with the code editor.
  4. Paste the following code in the .htaccess towards the top of the page.
    AddType text/html .shtml
    AddHandler server-parsed .shtml
    Options Indexes FollowSymLinks Includes
    AddHandler server-parsed .html .htm

    Save the changes. Visit your website. You should see the SSI Server Side Includes working now.

Was this answer helpful?

 Print this Article

Also Read

I cannot view my website, and log-in into my server. Is the server down?

Not necessarily. There are few things you must know ; 1) If you have continuously keyed-in wrong...

Why won't my pictures show up?

There are several reasons your images may not be showing up on your web page. 1) You haven't...

I uploaded a new script to my cgi-bin but I am being told 'File Not Found', 'No Such File or Directory' or 'Error 500'.

This is a common easily overlooked mistake thats easily corrected. Your script was probably...

I have uploaded my website to the server, but when I open up my website URL, I can only see list of directory. Why?

You must upload your website content into 'public_html' folder, and there must be an 'index' file...