01-11-2016, 04:38 AM
There are some reasons to do that, as mentioned here:
https://encodable.com/parse_html_files_as_php/
However, you should take a look at this "performance consideration": http://stackoverflow.com/questions/71818...tml-as-php
Remember, you can change the file extension on the view of users/browsers' address with Apache mod_rewrite
RewriteEngine on
RewriteRule ^(.*)\.html$ $1.php [nc]
So when you access a html-static-look-alike: http://example.com/forum.html, you can't realize you are accessing a PHP app: http://example.com/forum.php
https://encodable.com/parse_html_files_as_php/
However, you should take a look at this "performance consideration": http://stackoverflow.com/questions/71818...tml-as-php
Remember, you can change the file extension on the view of users/browsers' address with Apache mod_rewrite
RewriteEngine on
RewriteRule ^(.*)\.html$ $1.php [nc]
So when you access a html-static-look-alike: http://example.com/forum.html, you can't realize you are accessing a PHP app: http://example.com/forum.php
