How To Parse HTML Files As PHP
Posted by - NA -, Last modified by on 18 March 2010 03:53 AM

You can use the following directive in .htaccess to parse html files as php.


AddHandler application/x-httpd-php .html .htm

If the server has php version 5, use it as follows.


AddHandler application/x-httpd-php5 .html .htm

(1015 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).