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 Michael Fesser on 09/08/07 21:17

..oO(Jerry Stuckle)

>Michael Fesser wrote:
>>
>> There would be much more waste if you have to rename a file from .html
>> to .php and redirect all old links to the new one.
>
>Not at all. A redirect is quite fast and efficient.

While parsing all .html for PHP might waste resources on a single
machine, a redirect wastes bandwidth (on a high-traffic site this
counts!) and resources on a thousand machines around the world. Browsers
have to send another request, search engines and proxys have to update
their caches.

Thirteen Simple Rules for Speeding Up Your Web Site:
11: Avoid Redirects
http://developer.yahoo.com/performance/rules.html#redirects

>And the redirect
>doesn't need to be done forever.

At least some months if you don't want to break old links. In theory it
should be kept forvever.

>It wouldn't have been necessary if the files had been named correctly in
>the first place. And the sooner a bad decision like this is corrected,
>the better it will be.

Correct. No .php in URLs.

Micha

 

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

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