Redirects in Glassfish (adding trailing slash)

Posted by echox on Stack Overflow See other posts from Stack Overflow or by echox
Published on 2009-09-09T19:24:03Z Indexed on 2010/04/17 8:03 UTC
Read the original article Hit count: 165

Filed under:
|
|
|

Is it possible to add a trailing slash to the default context of an application?

Example:

http://www.uri.com/foo -> http://www.uri.com/foo/

I added the following redirect to the server properties:

redirect_1: from=/foo url-prefix=/foo/

and this ends up in a loop... Several other configurations also didn't work :-/

I'm using glassfish v2.1-b60e.

© Stack Overflow or respective owner

Related posts about java

Related posts about redirect