Problem With Solutions

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

OR

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

OR


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

3. Save and Exit .

Done

Also check the URL  http://www.bestdesigns.co.in/blog/enable-ssi


Page optimized by WP Minify WordPress Plugin

Optimized by SEO Ultimate