|
Posted by Oli Filth on 05/23/05 17:42
Aldo wrote:
> Hi,
> I use latex2html to generate a site; it creates an indexed table of
> content, but the files are all named .html; is it possible to use
> htaccess or other to tell Apache that there is maybe a PHP code in these
> .html while the name is still file.html?
>
> (I'm not a PHP specialist, sorry; but its for a work).
>
I believe that you need to use the line:
AddType application/x-httpd-php .html
in your .htaccess or httpd.conf file.
However, this is not recommended practice, and also means that every single HTML
file will be pre-processed by the PHP engine, which slows down the speed at
which documents are returned. It would be better to rename those files that
actually have PHP in them.
--
Oli
Navigation:
[Reply to this message]
|