How to change .htm/.html into PHP or ASP pages

July 20, 2008

If you have a website with lots of .htm or .html pages indexed on Google (or other search engine) and they have many backlinks, I’m sure you won’t let them deleted just because you want to serve dynamic content and change their extension to PHP or ASP pages. That’s enough reason why you have to read the tutor below on how to interpret .htm/.html into PHP or ASP pages in order to make them could serve dynamic content.
That could be done without changing the extention on the Apache Web Server for PHP or IIS Web Server for ASP.

Change .htm/.html to PHP pages
You could tell your Apache Web Server to interpret your .htm/.html files as .php files and serve dynamic content. Just add the following code:
AddType application/x-httpd.php .html .htm

On some Apache servers, they might require the following code line: [Read more]

Popularity: 23%