users@glassfish.java.net

Redirect 301

From: <glassfish_at_javadesktop.org>
Date: Tue, 29 Jan 2008 03:27:31 PST

hi,

Im looking for the way to get a http status 301 redirecting www.mydomain.com when a user try to go to mydomain.com.
I know how to do this in Apache, I know tomcat cant do this.
I read all the documentation and the only thing i found was the virtual servers, so my first solution was create a virtual server with a servlet sending redirect 301 to wwww.mydomain.com and point mydomain.com to this virtual server.

Im looking for a better solution

Thanks
[Message sent by forum member 'sergio_garcia' (sergio_garcia)]

http://forums.java.net/jive/thread.jspa?messageID=256297