Something Different In Linux

Home » Knowledge » How to enable SSI includes by using .htaccess

How to enable SSI includes by using .htaccess

Posted by Rishikesh Vispute Categories: Knowledge

Including executable are no longer allowed by default Apache configuration. Includes NO-EXEC is now the default, SSI includes are now disabled by default. This is done to prevent server abuse / insure server security. We recommend using PHP coding wherever possible. If using cgi includes is ABSOLUTELY necessary you may enable the includes via :

1. Create/edit the .htaccess file (you may find it within public_html folder) to permit the execution of CGI programs with the following options:
2. Enter the following:

Options +Includes +ExecCGI
AddHandler cgi-script .cgi .pl


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


AddType text/html .htm .html .shtm .shtml .sht
AddHandler server-parsed .htm .html .shtml .sht .shtm

3. Save and Exit .


Also check the URL

Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...