I have a client who has some .html WebPages that are ranked quite well. is it possible to put php into these WebPages without changing the HTML extension into a php one? thanks in advance.
ok found the answer (i new that i had seen it somewhere)
instead of
AddType application/x-httpd-php .php
you have
AddType application/x-httpd-php .php .html
according to this page
Of course you realize that it is going to parse every html file in there even if it does not have any PHP code. this might cause some delay issues or lag, when you are dealing with very large informative html pages. Since it will have to go through them. But any way it should still work.
There is no problem with that, litton1.
No matter what, it's already working like that anyway.
The parser will only process the PHP if there are codes in this tag:
<?
?>
So, what you need to be aware of is to make sure there is no such tag in your HTML file, or it will return error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.