Enabling SSI with .htaccess
Another common use of .htaccess files is to enable Server Side Includes for a particular directory. This may be done with the following configuration directives, placed in a .htaccess file in the desired directory:
Options +Includes
AddType text/html shtml
AddHandler server-parsed shtml Note that AllowOverride Options and AllowOverride FileInfo must both be in effect for these directives to have any effect.
Executing CGI script using .htaccess file
.htaccess file to permit the execution of CGI programs in a particular directory. following lines needed.
Options +ExecCGI
AddHandler cgi-script cgi pl Alternately, all files in the given directory be considered to be CGI programs, this may be done with the following configuration:
Options +ExecCGI
SetHandler cgi-script Note that AllowOverride Options and AllowOverride FileInfo must both be in effect for these directives to have any effect.