Hi,
I've proposed a patch that allows multiwiki to function based on URLs
and not based on subdomains.
http://jira.xwiki.org/jira/browse/XWIKI-2824
The approach of this patch is to support multiwiki using the following URLs:
http://host/xwiki/bin/[view]/Main/ is the main wiki
http://host/xwiki/subwiki/wiki_wikiname/[view]/Main/ is the subwiki
called 'wikiname'
'wikiname' needs to be what is in the server field in the wiki
declaration in the main wiki.
I wanted to implemented it by using wiki_wikiname directly as a
replacement to bin, but this is not possible since web.xml does not
allow to pass /wiki_* as a regexp.
This is related to the issue of Short URLs
(
http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs) for which
sergiu has documented a solution that needs a servlet to serve the
static content.
I think that controling our URLs is becoming more and more important (we
also have URL rewriting patches that are old now but would be quite cool
to have), and we have lot of people asking to be able to get rid of
/bin/ in our urls.
So we probably need to write this servlet that would be able to be a
unique entry point to XWiki. This servlet would:
- handle static content URLs
-- currently we would need to reserve the words 'templates', 'skins',
'wiki_editor', 'tiny_mce' ,' freemind', 's5 ,'yui' for
static content
but we could put them into 'static' in the future)
- handle multiwiki URLs (we could reserve subwiki_* for subwiki URLs)
- handle the other URLs as the main wiki URLs
Ludovic
--
Ludovic Dubost
Blog:
http://blog.ludovic.org/
XWiki:
http://www.xwiki.com
Skype: ldubost GTalk: ldubost