You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by santhoshs <sa...@gmail.com> on 2006/06/29 13:55:18 UTC

URL Redirection in tomcat

Hi Everybody,

Am using Tomcat 5.0 . My requirement is to redirect the URL
"http://username.mysite.com" to
"http://username.site.com/application.do?login_name=username". The URL
should be nice URL , in the sense the New URL should not be reflected in the
address bar.

My Question is whether should i use apache for this redirection or can i
achieve this using tomcat itself ? If so what should I do to achieve this ?

Thanks and Regards, 
Santhosh
-- 
View this message in context: http://www.nabble.com/URL-Redirection-in-tomcat-tf1867090.html#a5101383
Sent from the Tomcat - User forum at Nabble.com.

Re: URL Redirection in tomcat

Posted by 0 8 <01...@gmail.com>.
Look into mod_rewrite.

On 6/29/06, santhoshs <sa...@gmail.com> wrote:
>
> Hi Everybody,
>
> Am using Tomcat 5.0 . My requirement is to redirect the URL
> "http://username.mysite.com" to
> "http://username.site.com/application.do?login_name=username". The URL
> should be nice URL , in the sense the New URL should not be reflected in the
> address bar.
>
> My Question is whether should i use apache for this redirection or can i
> achieve this using tomcat itself ? If so what should I do to achieve this ?
>
> Thanks and Regards,
> Santhosh
> --
> View this message in context: http://www.nabble.com/URL-Redirection-in-tomcat-tf1867090.html#a5101383
> Sent from the Tomcat - User forum at Nabble.com.
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: URL Redirection in tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 6/29/06, santhoshs <sa...@gmail.com> wrote:

> Am using Tomcat 5.0 . My requirement is to redirect the URL
> "http://username.mysite.com" to
> "http://username.site.com/application.do?login_name=username".

> My Question is whether should i use apache for this redirection or can i
> achieve this using tomcat itself ? If so what should I do to achieve this ?

You certainly don't need apache, but you do need to read the servlet
spec about welcome files and forwarding. :-)

Also, if the originating URL is the root of your site, where is the value
"username" coming from??

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: URL Redirection in tomcat

Posted by santhoshs <sa...@gmail.com>.
Is there anybody to help me ???????
-- 
View this message in context: http://www.nabble.com/URL-Redirection-in-tomcat-tf1867090.html#a5246817
Sent from the Tomcat - User forum at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org