From: masoncXXX on
Dumb question -- I know, but...
Yes, I searched books and googled but couldn't find the answer.

Does php always require that the page be .php and not .html ?
Or is this server-dependent? Mine doesn't seem to recognize a php line in a .html page.

By the way, how do searchers, eg Google, treat .php? same as .html?
Do I lose search position by changing from .html to .php?

MasonC

From: Jonathan N. Little on
Beauregard T. Shagnasty wrote:
> You need only add a line to your Apache .htaccess file if you
> want .html files to be processed as php scripts.
>
> # Process .html files as php
> AddHandler application/x-httpd-php5 .html .php
>
> Since you already have dozens of pure .html files, if you want separate
> ones to be processed as .php, put them in a separate directory and place
> an .htaccess file in that directory.

Or use ForceType

<Files foo.html>
ForceType application/x-httpd-php
</Files>


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
From: masoncXXX on
Thanks to all of you for the responses.

Especially "rf" for the lead to the banana cake recipe by Adrienne.

Thanks for the redirection to comp.lang.php where I initiated a big quarrel but
did get some more good information.

Seems there's three solutions:

AddHandler application/x-httpd-php5 .html .php
Mod_Rewrite
and a 301 redirect (which has not been mentioned -- I stumbled onto it)

Me..... I think will stick to DOS and HTML.

--
MasonC
 | 
Pages: 1
Prev: comp $ biznes
Next: Viewport and gradient fill