How can I execute php code as .htm or .html files?

In your .htaccess file insert this line of code:

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

Was this answer helpful?

 Print this Article

Also Read

How can I enable Mod-Rewrite Module?

In order to enable Mod_Rewrite for your site you should create a text file called .htacccess in...

I have problems accessing my mysql database remotely

If you have problems accessing your database remotely please make sure that: You are using the...

How do I configure my desktop's mail client with an email account?

A mail client is an application you use to check your email. The mail client can be either web...

How to provide WHM/Master Reseller with Zamfoo Panel?

If you have Master/Alpha Reseller account with ZinkHost, do the following to give WHM Panel to...

What's the Hostname & Port for MySQL?

When configuring any of your scripts on the server, use the following connection info to connect...

Powered by WHMCompleteSolution