try something like this
<map:match pattern="">
<map:redirect-to uri="Home"/>
</map:match>
but if you put this in a sub sitemap i think tha you have to modify and
your parent sitemap
-- stavros
On Wed, 29 Oct 2003, James Cummings wrote:
> Hiya,
>
>
> Quick, and I hope relatively simply question:
>
> If I have a file under cocoon at say:
>
> http://domain.name/foo/blort
>
> and in the auto-mounted sitemap for blort I have:
>
> <map:match pattern="wibble">
> <map:redirect-to uri="wibble/"/>
> </map:match>
>
> because when MSIE bookmarks things it leaves off the / on
> http://domain.name/foo/blort/wibble/
>
> and I have another match saying what happens to wibble/ I
> run into a problem if a referenced file in wibble/ say
> something like wibble/index.html has relative url
> references.
>
> i.e.
>
> if someone goes to
> http://domain.name/foo/blort/wibble/ which loads index.html
>
> a link like <a href="wibblesubdirectory/bar.html">bar</a>
> is http://domain.name/foo/blort/wibble/wibblesubdirectory/bar.html
> and is found fine.
>
> But, if someone goes to http://domain.name/foo/blort/wibble
> (which is redirected as above and then loads index.html)
> a link like <a href="wibblesubdirectory/bar.html">bar</a>
> is http://domain.name/foo/blort/wibblesubdirectory/bar.html
> and wibble, itself, is missing, and so of course the file
> isn't found.
>
> Is there a way to say in my blort/sitemap.xmap that if
> I get /* redirect it to /*/ or similar, without this
> problem? I'm assuming there is just a better way to do
> this in the sitemap, and plead my newbie ignorance.
>
> It isn't a problem for most of the site which uses url's
> such as http://domain.name/foo/bar?param=value but is
> in these few cases. Very bad design I know, but I'm just
> trying to minimise the number of errors users using
> MSIE (or silly enough to type in the address wrong) might see.
>
> Many Thanks,
> -James
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]