Let php engine handle html as php
Posted by David on December 16th, 2007 filed in LinuxI have a site full of the html file. Later I added some php code into these html files. I don’t want to change the URL from .html to .php. It is not SEO friendly.
So, I would like php engine can handle html same as php.
Edit .htaccess file in the root.
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
That’s all.
Leave a Comment