You are here: Re: .htaccess route to php on .html « All PHP « IT news, forums, messages
Re: .htaccess route to php on .html

Posted by Crash\" Dummy on 09/06/07 18:43

> I made an .htaccess file to allow my .html files to be parsed for
> any php on them. It has:

> AddType application/x-httpd-php .html

For the reasons cited by others, I think that is a lousy idea. It is much
simpler to selectively use the .php extension to mark html files with php code
in them. If for some obscure reason you want all files to have the same
extension and be parsed for php code, you can give them all the .php extension,
even if they don't have any code. They will just be passed unchanged.
--
Crash
- Windows 2000 Pro - IIS 5 - Apache 2.2.4 - PHP 5.2.1 - Perl 5.8.8

 

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

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