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



0 Comments on “Let php engine handle html as php”
Leave a Comment