From version < 16.1 >
edited by Eduard Moraru
on 2016/01/05
To version < 16.3 >
edited by Vincent Massol
on 2017/10/06
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.enygma
1 +XWiki.VincentMassol
FAQCode.FAQClass[0]
answer
... ... @@ -1,10 +1,13 @@
1 1  Before XWiki 6.4RC1, this was not possible and modifying the content of the home page (i.e. ##Main.WebHome##) was the only solution to work around this limitation.
2 2  
3 3  == Since 6.4RC1 ==
4 -Go to the wiki's [[##Administration > Wikis > Descriptor##>>extensions:Extension.Wiki Application||anchor="HConfigureWiki"]] section and set the ##Homepage## field.
5 5  
5 +Go to the wiki's [[##Administration > Wikis > Descriptor##>>extensions:Extension.Wiki Application||anchor="HConfigureWiki"]] section and set the ##Homepage## field with the location of the page you want to use as homepage for your wiki.
6 +
6 6  == Workarounds for older versions ==
8 +
7 7  You have several options:
10 +
8 8  * Option 1: Simply edit ##Main.WebHome## using the wiki editor or the WYSIWYG editor and replace the content by your content
9 9  * Option 2: Include the page you wish to display from the home page, e.g. have the following in ##Main.WebHome##:(((
10 10  {{code}}
... ... @@ -11,7 +11,7 @@
11 11  {{include reference="MySpace.MyPage"/}}
12 12  {{/code}}
13 13  )))
14 -* Option 3: [[Redirect>>extensions:Extension.Redirect]] the home page to your page, using a script, e.g. have the following in ##Main.WebHome##:(((
17 +* Option 3: [[Redirect>>snippets:Extension.Redirect]] the home page to your page, using a script, e.g. have the following in ##Main.WebHome##:(((
15 15  {{code}}
16 16  {{velocity}}
17 17  $response.sendRedirect($xwiki.getURL('MySpace.MYPage'))
... ... @@ -18,7 +18,7 @@
18 18  {{/velocity}}
19 19  {{/code}}
20 20  )))
21 -* Option 4: Modify the ##web.xml## file to control what ##http:~//<yourserver>/## should redirect to. Specifically, edit ##WEB-INF/web.xml##, locate the section with the servlet responsible for the redirect (the one with the line {{code}}<servlet-class>com.xpn.xwiki.web.HomePageRedirectServlet</servlet-class>{{/code}}, and change that section to contain something like:(((
24 +* Option 4: Modify the ##web.xml## file to control what ##http:~/~/<yourserver>/## should redirect to. Specifically, edit ##WEB-INF/web.xml##, locate the section with the servlet responsible for the redirect (the one with the line {{code}}<servlet-class>com.xpn.xwiki.web.HomePageRedirectServlet</servlet-class>{{/code}}, and change that section to contain something like:(((
22 22  {{code}}
23 23  <servlet>
24 24   <servlet-name>redirectHomeServlet</servlet-name>

Get Connected