How to parse PHP in html files?

Are you looking to make all the .html pages of your websites to run as .php or you are looking to parse the PHP in HTML files? Please add the below line to your .htaccess file.

AddHandler application/x-httpd-lsphp .htm .html

IMP: Ensure that you take the backup of your existing .htaccess file before making any changes to your existing .htaccess file

Related Articles

How to Install and configure Dovecot on CentOS?

Dovecot is used to receive incoming emails on your server from Postfix. Dovecot is an open-source...

How to Install Tomcat 7 on Centos?

Tomcat is an open-source web server that is built in Java Servlet and JavaServer Pages...

How to Protect GRUB with Password in Linux ?

GRUB called as Grand Unified Bootloader is a default Boot loader on Unix OS. In a Linux system,...

How to enable sFTP in a Linux VPS?

The SSH File Transfer Protocol (SFTP), also known as the Secure File Transfer Protocol, enables...

How to install ISPConfig on Ubuntu 18.04?

This article will help you on how to install ISPConfig on Ubuntu 18.04. ISPConfig is an open...

  • 0 Users Found This Useful

Was this answer helpful?