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

Guillaume Déflache guillaume.deflache at wyona.com
Mon Apr 20 20:19:34 CEST 2009


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?


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...


(*): There are even some odder mappings, like both 
"acknowledgements.html.txt" and "acknowledgements.html" (plain text 
document).
(**): IMHO we should really use no extension at all for pages as we seem 
to use MIME-types correctly internally, but anyway...

Cheers,
    Guillaume



More information about the Yanel-development mailing list