I am trying to edit my .htaccess that any .test files will be treated as php The Apache site tells something about cgi script My question is how to do that? Thx .htaccess: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On ## hide .php extension RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] #set path for error pages ErrorDocument 401 /401.php ErrorDocument 404 /404.php AddHandler application/x-httpd-php .html .htm .shtml .test AddType application/x-httpd-php .html .htm .shtml .test
Just update this in your .htaccess file:
AddHandler application/x-httpd-php .html .htm .shtml .test
AddType application/x-httpd-php .html .htm .shtml .test
Add the following line into it:
Addhandler application/x-httpd-php .html .php .test