Knowledgebase: Cpanel Control Panel > PHP
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))
Helpful
Not helpful

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