Knowledgebase

How to parse html as php

This can be set by putting the following code in ".htaccess"

1. edit .htaccess file

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

This will do the trick.

If you want more extension to be parsed as php you can add as much

eg:

AddHandler application/x-httpd-php .php .phtml .html .htm .shtml .cgi .pl .asp .dll



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Powered by WHMCompleteSolution

Language: