Reply to Re: Lost formatting in browser 'view source'

Your name:

Reply:


Posted by Michael Fesser on 11/22/06 01:31

..oO(J.O. Aho)

>Renaming the files to *.php is a better idea than use AddType.

Not really. Changing URLs is never a good idea.

>If you are
>concerned about users links and bookmarks to break, you have the nice option
>in apache to rewrite rules, if they try to load a "missing" html page,
>redirect them to a php file with the same name.

There's a better option: Let all URLs end in .html (or no extension),
while still allowing the server to chose the most appropriate handler
for a particular file. Static files can be send as-is, SSI can be
handled by the server, PHP can be run through the interpreter etc.

It's all possible with simple .html URLs. The keyword is "MultiViews".

Micha

[Back to original 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

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