[Yanel-dev] should new pages' URLs end with ".xhtml" or ".html"?

Michael Wechner michael.wechner at wyona.com
Tue Apr 21 09:25:20 CEST 2009


Guillaume Déflache schrieb:
> Hi!
>
> When creating the new "Features" page ( 
> http://yanel.org/en/features.html ) I saw that many pages in the Yanel 
> website have both "*.xhtml" and "*.html" URLs(*)(**) (they use two 
> entries in the repo's "paths" directory).
>
> Why is that? It looks like we had to do that at some point to be 
> crawled by some tool that did not grok MIME-types but only use 
> extensions: is that the reason?

IIRC Internet Explorer had some issues with xhtml suffix and xhtml mime 
type and also people expect an html suffix.
But to make clear internally that this is really xhtml we added the 
xhtml suffix.
>
>
> This may well be an issue if we want to move away from a VFS repo impl 
> using path-mapping to something simpler for the website ( see 
> http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=6940 ) as 
> then we would probably get two copies of the same content in "*.xhtml" 
> and "*.html" files...

if we migrate to VFS, then we need to rename the xhtml to html, but 
don't worry about this, because it will be done automatically anyway, 
because only what the map contains is important
>
>
> (*): There are even some odder mappings, like both 
> "acknowledgements.html.txt" and "acknowledgements.html" (plain text 
> document).

this is, because it's based on Wiki syntax
> (**): IMHO we should really use no extension at all for pages as we 
> seem to use MIME-types correctly internally, but anyway...

I think extensions make a lot of sense still, because it gives a quick 
clue what the mime type could be.

Cheers

Michi
>
>
> Cheers,
>    Guillaume
>



More information about the Yanel-development mailing list