Hi Sebastian,

Very late answer in case it can still help you or someone else. I would use
the default route and attach a properly configured Redirector. It would also
be wise to change the default routing mode to MODE_EQUALS (default in v2.0)
to prevent conflicts with other routes.

Best regards,
Jerome
--
http://www.restlet.org
http://twitter.com/#!/jlouvel


-----Message d'origine-----
De : Sebastian Krause [mailto:[email protected]] 
Envoyé : jeudi 26 août 2010 10:39
À : [email protected]
Objet : Automatically redirect requests from the root path to another URL

Hello,

I'm using Restlet 1.1.10 and have a Router which splits my web application
into a data and a user interface part:

http://example.com/data/{something}   (for XML-Requests)
http://example.com/ui/   (For the web page)

Now I want to redirect requests to http://example.com/ directly to
http://example.com/ui/ so that a user doesn't have to type the full path
into the browser.

Since I don't know the future address for the website yet, it has to
agnostic of the domain and the redirection should take place before the
Router hits the Guard. Unfortunately I couldn't find out to only redirect
requests to "/" 
without disturbing the other routes.

Thanks,
Sebastian

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=26515
63

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2834716

Reply via email to