Knowledgebase
[How to] Parse .HTML as PHP
| A lot of users who start off only developing sites with simple .html files and want to start using dynamic server side languages like PHP but find it is not parsed will need to either have to rename all their files to .php which not only does it waste time can adversly affect search engine rankings because it has to be reindex etc or to avoid all this hassel you can simply add a short snippet of code to your .htaccess file which tells the server to also parse .html (or any other extension) as PHP. All you have to do is add the following snippet to your .htaccess file. CODE: The same can be applied to other extensions (e.g. .htm or .shtml) by simply adding the extension to this line. Example of multiple extensions:CODE:
Updated: 12/08/09 to reflect server changes to suPHP environment. |
Powered by WHMCompleteSolution
Client Login
Contact Us
System Status
Blog
Affiliates
Knowledge Base

