[xwiki-devs] [URL] How to rename "bin" to "wiki" or something else.
Hi all, I'm wondering if it's possible to rename the "bin" part of the URL to something else. For same reason I can't drop the bin from the URL in Weblogic so I was wondering whether it could be possible to nicely rename it. Best Regards Nicola -- View this message in context: http://n2.nabble.com/URL-How-to-rename-bin-to-wiki-or-something-else-tp47553... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi Nicola, Nicola Nardino wrote:
Hi all, I'm wondering if it's possible to rename the "bin" part of the URL to something else. For same reason I can't drop the bin from the URL in Weblogic so I was wondering whether it could be possible to nicely rename it.
This http://platform.xwiki.org/xwiki/bin/Main/ShortURLs might be useful. I tried replacing bin with something else in web.xml but it's not enough it seems. Marius
Best Regards Nicola
On Thu, Mar 18, 2010 at 14:46, Marius Dumitru Florea <[email protected]> wrote:
Hi Nicola,
Nicola Nardino wrote:
Hi all, I'm wondering if it's possible to rename the "bin" part of the URL to something else. For same reason I can't drop the bin from the URL in Weblogic so I was wondering whether it could be possible to nicely rename it.
This http://platform.xwiki.org/xwiki/bin/Main/ShortURLs might be useful. I tried replacing bin with something else in web.xml but it's not enough it seems.
You also need to set xwiki.servletpath property in xwiki.cfg file to indicate to XWiki what to use i think.
Marius
Best Regards Nicola
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
On Thu, Mar 18, 2010 at 15:05, Thomas Mortagne <[email protected]> wrote:
On Thu, Mar 18, 2010 at 14:46, Marius Dumitru Florea <[email protected]> wrote:
Hi Nicola,
Nicola Nardino wrote:
Hi all, I'm wondering if it's possible to rename the "bin" part of the URL to something else. For same reason I can't drop the bin from the URL in Weblogic so I was wondering whether it could be possible to nicely rename it.
This http://platform.xwiki.org/xwiki/bin/Main/ShortURLs might be useful. I tried replacing bin with something else in web.xml but it's not enough it seems.
You also need to set xwiki.servletpath property in xwiki.cfg file to indicate to XWiki what to use i think.
Or maybe xwiki.defaultservletpath i'm not sure.
Marius
Best Regards Nicola
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
-- Thomas Mortagne
On 03/18/2010 02:46 PM, Marius Dumitru Florea wrote:
Hi Nicola,
Nicola Nardino wrote:
Hi all, I'm wondering if it's possible to rename the "bin" part of the URL to something else. For same reason I can't drop the bin from the URL in Weblogic so I was wondering whether it could be possible to nicely rename it.
This http://platform.xwiki.org/xwiki/bin/Main/ShortURLs might be useful. I tried replacing bin with something else in web.xml but it's not enough it seems.
I updated the page with clear instructions for this change, see http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs#HAlternative3A20Chan... -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi All, Thanks very much for the insights, by the way, in the end I've decided to completely remove the bin url component by using the default Weblogic Servlet, something like the following: <servlet> <servlet-name>defaultServlet</servlet-name> <servlet-class>weblogic.servlet.FileServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>defaultServlet</servlet-name> <url-pattern>/skins/*</url-pattern> <url-pattern>/resources/*</url-pattern> </servlet-mapping> Furthermore, in order not to have the bin component displayed as homePage component, I got rid of it by this xwiki pre-configured web.xml entry: <servlet> <servlet-name>redirectHomeServlet</servlet-name> <servlet-class>com.xpn.xwiki.web.HomePageRedirectServlet</servlet-class> <init-param> <description>The address to redirect to when the client hits the root of the application.</description> <param-name>homePage</param-name> <param-value>Main/</param-value> </init-param> </servlet> Specifically, <param-value>Main/</param-value> prevents the bin url to be displayed at all. Cheers Nicola -- View this message in context: http://n2.nabble.com/Re-URL-How-to-rename-bin-to-wiki-or-something-else-tp47... Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (4)
-
Marius Dumitru Florea -
Nicola Nardino -
Sergiu Dumitriu -
Thomas Mortagne