Run PHP from pages with any extension

To use php code on a page with an extension other than .php, add the following line to .htaccess file.

AddType application/x-httpd-php .html .indi .htm

This tells the server to check for php code and execute it in files with extensions .html, .indi or .htm.

Leave a Reply

You must be logged in to post a comment.