Posted by Justin Koivisto on 11/02/05 16:50
lkrubner@geocities.com wrote:
> Justin Koivisto wrote:
>
>>.htaccess:
>>-----------
>># Send all .html files through the php interpreter
>>AddType application/x-httpd-php .html
>>
>>
>># mod rewrite to rewrite article/2005-10-03.html
>># to article/view.php?date=2005-10-03 without
>># changing any links in the site
>>RewriteEngine On
>>RewriteRule ^article/([^.]+)\.html$ article/view.php?date=$1 [L]
>>-----------
>
> Thanks much for the reply. I take that this line:
>
> AddType application/x-httpd-php .html
>
> can be read as something like "add the html type to the php
> application"??? What does "x-httpd-php" mean?
That line tells apache to treat all the .html files as the
"application/x-httpd-php" - which is where .php files are also sent.
x-httpd-php is the PHP interpreter...
--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
Navigation:
[Reply to this message]
|