mikeysan
12-22-2004, 07:27 AM
Hi,
Does anyone in here know how to parse php code (such as a php include) in a page that ends in .html but is actually generated dynamically using mod_rewrite?
Thanks.
Mikey
2003m2003
12-22-2004, 08:16 AM
Read this, I think it answer your question
http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html
apicalsoft
12-22-2004, 09:40 AM
I add follow text to my apache's httpd.conf, it can parse php code in html files
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html //this is for html
mikeysan
12-22-2004, 04:45 PM
Hi,
Thanks for the replies.
I already know how to parse .php code in .html files. Yes, changing the .htaccess file works fine.
But, I should have been more clear. I've just found out myself that the .htaccess lines direct the dynamic pages to a 404.php which then takes a header/footer html file and then displays the static looking .html page using mod_rewrite.
I'm trying to insert a php include in the header and footer of this html that gets called from the 404.php page. I've just discovered this myself, so I don't think I can do what I need to do.
But if anyone can figure out if its possible, pls let me know. Thanks.
Mikey