Reply to Re: Question on html command

Your name:

Reply:


Posted by Els on 07/31/06 08:30

Toby Inkster wrote:

> Els wrote:
>
>> http://example.com/somewhere/
>> http://example.com/somewhere
>>
>> Most servers though, are set up to respond to the second one as if
>> there was a trailing slash, as soon as it detects that there is no file
>> by the name of "somewhere".
>
> Not exactly. In the case of a file at the second URL being not found, most
> servers will firstly *check* to see if the first URL would have worked,
> and if so *redirect* to it; if not, send a 404.
>
> I've heard some early servers tried doing as you describe -- serving the
> same page at "somewhere" as they did at "somewhere/", but authors found
> that this broke relative links. (Consider where "logo.jpeg" would be
> requested from in each case!) And so, the behaviour was changed to the one
> I describe -- the redirect.

Makes more sense too :-)

--
Els http://locusmeus.com/

[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

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