Show last authors
author | version | line-number | content |
---|---|---|---|
1 | |||
2 | If you deploy XWiki as the ROOT app, you must also change in WEB-INF/web.xml the \<display-name\> parameter to the empty string, like: | ||
3 | |||
4 | \<display-name\>\</display-name\> | ||
5 | |||
6 | To get rid of /view/, in xwiki.cfg write | ||
7 | |||
8 | xwiki.showviewaction=\0 | ||
9 | |||
10 | To get rid of /bin/, for the moment you have to change web.xml in a | ||
11 | container-dependent way, so that you map the container's default servlet | ||
12 | to existing directories, like skins, yui, tinymce and wikieditor, copy | ||
13 | the /bin mapping to also be activated for / (copy, don't change, so that | ||
14 | /bin works, too), then add in xwiki.cfg | ||
15 | |||
16 | xwiki.defaultactionpath= | ||
17 | |||
18 | This will allow you to access documents with server.com/Space/Document, | ||
19 | server.com/Space/ (pointing to Space.WebHome), server.com/Document | ||
20 | (pointing to Main.Document), and server.com/ will show Main.WebHome | ||
21 | without needing a redirect. | ||
22 | |||
23 | As a bonus, these changes are backwards compatible, meaning that any | ||
24 | currently working URL will also work with these changes performed, so | ||
25 | you won't have any broken bookmarks. | ||
26 | |||
27 | All these changes aren't completely tested, so there could be some | ||
28 | things that aren't working, because of code that parses the URL and | ||
29 | counts the number of slashes, or expects an exact URL pattern containing | ||
30 | /bin/ or stuff like that. But my unconfirmed guess is that it should all | ||
31 | work fine. | ||
32 | |||
33 | If you want to have different action mappings, like | ||
34 | server.com/Space/Doc?action=edit, then there's more work, like writing a | ||
35 | new URLFactory, changing struts-config.xml, and creating another | ||
36 | RequestProcessor. |