You are here: Re: how to use the PHP path to send something explicitly to the PHP parser? « PHP Programming Language « IT news, forums, messages
Re: how to use the PHP path to send something explicitly to the PHP parser?

Posted by lkrubner on 11/02/05 07:16

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?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация