On Fri, 1 Oct 1999, Jay R. Ashworth wrote:
On Fri, Oct 01, 1999 at 10:25:23AM -0700, James Punteney wrote:
Is there a problem with naming a page using a period instead of the under score as in "index.html" instead of "index_html".
Yes; it's poor user-interface architecture. See below.
Are you under the mistaken apprehension that _anyone_ _ever_ types "index.html" unless they're a) told to, or b) trying to be clever and look for a directory without one?
However, if you are migrating a site to Zope, you might find your old users have managed to bookmark the 'index.html' pages and such (usually as a result of dodgy web server configuration or poor HTML coding). If you need to catch these cases, you just have to create a DTML method called 'index.html' at the root of your Zope tree, with the following contents: <dtml-var index_html> The magic of aquisition then takes care of the rest. More complex redirections should probably be done by running Zope behind another web server and using its rewrite functions (eg. *.html -> *, *.php -> * etc.). ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen