Map File Extension to PHP

Short and simple, you want to map a file extension such as “html” to run under the PHP engine. Just add the following to your .htaccess file:

AddHandler x-httpd-php html

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.