Posted by Jerry Stuckle on 04/29/07 15:27
Alice wrote:
> How can I make php script serve up an *.html file 'server-parsed' for SSI's?
>
>
>
> The goal is to pre-process all *.html files with php script, but the SSI's
> need to be handled too. Problem with using 'virtual' is that it creates a
> loop via the .htaccess handler setting/action.
>
>
>
> .htaccess
>
> # Enable SSI
>
> Options +Includes
>
>
>
> # HTML Handler
>
> AddHandler HTML .html
>
> Action HTML /HTML.php
>
>
>
> HTML.php
>
> <?PHP
>
>
>
> <snip>
>
>
>
> $file = $_SERVER['PATH_TRANSLATED'];
>
> include $file;
>
> ?>
>
>
>
>
A terrible approach. But just set your Apache configuration up to parse
html files through both.
Try alt.apache.configuration for more info.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|