Hmm, not going into details, but you probably need to have a look at
the RegexpVirtualURIMapping, it might help (keep the ^ and $ tokens in
mind)
-g
On Nov 12, 2008, at 1:42 PM, Paul Hodges wrote:
My earlier query has fallen by the wayside, so I'll try expressing it
differently.
When I create a website node - let's call it, for example:
"/site/current/funded/PROJECT" - I can access it by that name (which
is
how it appears in the website tree), or the same with ".html" on the
end (which is the form in which it appears in menus). I suppose one
of
these is canonical, and a filter arranges for the other to work, but I
don't know the mechanism sufficiently.
Now, I add a redirection to this page from "/site/PROJECT". I can
make
the fromURI in the virtualURIMapping either "PROJECT" or
"PROJECT.html", but the presence or absence of the extension is
ignored. The mapping that works is determined by the toURI's
extension. To illustrate, if the mapping is:
/site/PROJECT.html => /site/current/funded/PROJECT
then "/site/PROJECT" will work, and "/site/PROJECT.html" will give
404.
So I have two questions:
(1) Why is the mapping using part of the toURI to determine the
accepted fromURI?
(2) Why is the presence or absence of the extension handled by the
filter in the direct access case, and not in the mapped case?
Thanks for any insight.
Paul
--
Paul Hodges
----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------