Last modified by Simon Urli on 2023/10/10

<
From version < 8.7 >
edited by Eduard Moraru
on 2013/03/18
To version < 8.8 >
edited by Eduard Moraru
on 2013/03/18
>
Change comment: Mentioned the removal of "xwiki.virtual.redirect".

Summary

Details

Page properties
Content
... ... @@ -26,6 +26,16 @@
26 26  
27 27  To avoid confusion and to simplify our development as well, we have defaulted to a virtual mode enabled by default, allowing you to create and manage subwikis/workspaces no matter what product you have downloaded. For instance, if you have downloaded XE, you now only have to install one or two extensions ([[extensions:Extension.Wiki Manager Application]] and/or [[extensions:Extension.Workspace Application]]) using the extension manager and you are all set. Most likely we will also switch to a single product scheme in the future.
28 28  
29 +== Replace "xwiki.virtual.redirect" with an error template(or page) ==
30 +
31 +This xwiki.cfg setting allowed the admin to redirect to a specified URL an user that tried to access an nonexistent wiki. However, it was enabled by default and the default value was ##http://127.0.0.1:9080/xwiki/bin/Main/ThisWikiDoesNotExist ## which was definitely wrong and was causing more problems than it solved. See {{jira url="http://jira.xwiki.org" style="enum"}}XWIKI-479{{/jira}} for an example.
32 +
33 +We have decided to drop this feature and replace it with an error template ##wikidoesnotexist.vm## that can be overridden by a document in the main wiki named ##XWiki.WikiDoesNotExist##, to be consistent with what we are doing for other XWiki entities (documents, attachments, etc).
34 +
35 +However, to avoid hitting problems with accessing your main wiki, this feature is disabled by default and can be enabled by uncommenting ##xwiki.virtual.failOnWikiDoesNotExist## in ##xwiki.cfg## and setting its value to ##1##. Otherwise, by default, the user will always get server the content of the main wiki if the wiki he requested is not found.
36 +
37 +For those that want to achieve the same behavior as before (by redirecting to a fixed URL every time), they have to enable ##xwiki.virtual.failOnWikiDoesNotExist## in ##xwiki.cfg## and then redirect to the desired URL either in ##wikidoesnotexist.vm## or in the main wiki's ##XWiki.WikiDoesNotExist##.
38 +
29 29  == Miscellaneous ==
30 30  
31 31  <insert misc user stuff and important bug fix descriptions here in a list, when they are too small to warrant a section by themselves - Change the version in the URL below!>

Get Connected