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

Do you support GD & ImageMagick?

Yes, we do support GD & ImageMagick modules across all our servers. The module-binaries are...

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...

How can I login into cPanel / WHM / Webmail?

You can login to cPanel by : http://cpanel.yourdomain.com http://yourdomain.com:2082...

How do I auto-redirect my web pages?

Redirects are used when you want to point a specific url or web page to another location. For...

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...

Copyright © 2004-2020 - National IT Solutions - All Rights Reserved.