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

begin:vcard
fn:Ludovic Dubost
n:Dubost;Ludovic
org:XWiki
adr:;;10 Rue Pernety;Paris;;75014;France
email;internet:[EMAIL PROTECTED]
title:CEO
tel;work:01 45 42 40 90
tel;fax:09 59 26 92 14
tel;home:09 54 26 92 14
tel;cell:06 09 34 92 14
x-mozilla-html:TRUE
url:http://www.xwiki.com
version:2.1
end:vcard

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to