|
Posted by Michael Fesser on 01/03/07 05:43
..oO(Rik)
>Michael Fesser wrote:
>> .oO(David)
>>
>>> Does anyone know if all pages in a fairly established site are
>>> changed from .htm to .shtml or .php
>>
>> There's no reason to do that. Cool URIs don't change, so keep the
>> .htm.
>> If you need some server-side stuff like scripting or SSI you can do
>> that even on .htm files.
>
>Parsing every .htm for the change it has some script in it is hardly
>elegant.
It works well and doesn't cause much trouble for the server. If you use
PHP/SSI for more than just some little add-ons, then it will most likely
be used on every page anyway, so there's not really a problem by passing
all pages to the interpreter.
But if you don't like doing it that way - there are still other ways of
mapping URLs onto the file system. Keywords are mod_rewrite and content
negotiation (MultiViews), assuming an Apache webserver (you already
mentioned that some minutes ago in ciwah).
>Go for a 301 redirect. Browsers and search engineds understand that.
I consider that the worst idea of all, because it's completely
unnecessary and a sign of a broken URL design. The server should do the
work, not all the clients.
Micha
Navigation:
[Reply to this message]
|