Originally posted by superwormy
I feel its a better solution because this way you won't need to have both a .php and a .html version of the same page. You can just embed PHP right in all of your .html files and it will work fine.
You won't to worry about inclusion in serach engines or anything, since none of your pages will be changing names, they'll all still be the original *.htlm names.
Also, I HIGHLY DOUBT that you'll notice any speed decrease. And yes, you could place that in your httpd.conf file, but most hosting services will not let you edit the httpd.conf file... so unless you have a dedicated server you probably can't edit that file.
What do you mean you prefer PHP... do you mean you prefer the .php extension ofver the .html extension... ? Why does the extension you are using matter...?
Well, I have already built most of the (large) php site (w/ php extensions), so it would be a pain to change it all now.
So, I was thinking that I would leave both the html and the php files in the directories.
Yes, I do have a dedicated server, so I can edit everything...
I guess my questions at this point are:
1). Is there any search-engine-friendly way to add refresh statements (meta or javascript) to some of my html files? If so, please share code example. [Only those that are a part of the main site structure - i.e. index.html files in the directories.]
2). Is the "AddType application/x-httpd-php .html" statement valid to be in the current version of PHPs httpd.conf file? Or, does it need to be like this "AddType application/x-httpd4-php .html" (with the '4' included)? Also, does that statement make PHP parse .html as .php?
3). Where can I find complete instructions on using the .htaccess method? [...Just in case I end up with no other choice.]
4). Does anyone have any examples of how speed is affected by having the *.html files parsed as PHP files? If so, please share.... [Speed is of big concern...]
Thank you very much.
B-truE