forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <rgard...@apache.org>
Subject Re: Why is default start page fixed on index.html?
Date Sat, 30 Apr 2005 10:06:15 GMT
Nicola Ken Barozzi wrote:
> Ross Gardler wrote:
> ...
> 
>> Cocoon has to know where to start working, by default it starts at 
>> index.html. It is configurable somewhere, but I can't remember where. 
>> Someone else will speak up I hope.
> 
> 
> LAst time I touched it, it started at linkmap.html, so that it did not 
> need to have index.html.

Ferdinands experiments appear to show that it does need one, see below...

> 
>>> and will disappear only when I place an index.xml in the xdocs
>>> directory.
>>>
>>> So why does Forrest want index.html. Is this a bug?
>>
>>
>> No, a "feature". Since the vast majorty of web servers are set up to 
>> default to index.html it would seem like a very logical choice, and 
>> since it *can* be configured where necessary I wouldn't see it as a bug.
> 
> 
> Probably it's that some links do not have the filename, so in *that* 
> case, index.html is called as the default file for a dir.

Yes:

 From cli.xconf:

    <!--+
        |  Specifies the filename to be appended to URIs that
        |  refer to a directory (i.e. end with a forward slash).
        +-->
    <default-filename>index.html</default-filename>

Also from sitemap.xmap:

       <map:match pattern="">
         <map:redirect-to uri="index.html" />
       </map:match>
       <map:match type="regexp" pattern="^.+/$">
           <map:redirect-to uri="index.html"/>
       </map:match>

Ross

Mime
View raw message