Hi, Create a new IRequestMapper and setup it as a root mapper (see HttpsMapper and CryptoMapper for example). If the request's Url has no segments then use the HttpServletRequest (request.getContainerObjec()) to read the host and from this decide which page to return (new RenderPageRequestHandler(new PageProvider(SomePage.class)))
Martin Grigorov Wicket Training and Consulting On Mon, Mar 10, 2014 at 5:40 PM, Simon B <simon.bott...@gmail.com> wrote: > Hi, > > I want one instance of Wicket to handle different subdomains, so for > example: > > http://mydomain.com/ > http://www.mydomain.com/ > Map to GeneralHomePage.class > > and http://foo.mydomain.com/ > Maps to FooHomePage.class > > and http://bar.mydomain.com/ > Maps to BarHomePage.class > > sorry for the unoriginal naming. > > If anyone could suggest the best way to do this I'd be very grateful. > > Cheers > Simon > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/mounting-mapping-subdomain-HomePage-tp4664880.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >