Treat .html pages as .php page
For making php pages seo friendly, keep the web page extensions as html, but force the webserver to treat html pages as php pages. To do so, follow below mentioned steps :
1. Create a .htaccess file in the web root dir.
2. Copy and paste the following contents in it
AddType application/x-httpd-php .php .html
If after adding the above line page displays error, this means you have PHPSuexec Installed then change the above line to
AddHandler application/x-httpd-php .php .html
And, it’s all done, now you can insert php code into html pages and they will be treated as php pages.
