You are here: Portal Home > Knowledgebase > suPHP. > Parse .html as PHP.
Please Login or Register

LiveZilla Live Help

Parse .html as PHP.

How can I configure Apache to treat .html files as PHP under suPHP?
You need to remove any previous entries for handling .html files as PHP and insert the following in your .htaccess file:

AddHandler x-httpd-php .html .htm

Or you can add this manually using Cpanel -> Apache Handlers -> New:

Extension: .html .htm
Handler: x-httpd-php

The newest cPanel servers actually require the following instead:

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

Please try this if the first type doesn't work for you for files.



Was this answer helpful?

Add to Favourites
Print this Article

Powered by WHMCompleteSolution

Web Tech Hosting   Web Techs Shoutcast Hosting

Web Tech Hosting
Language: