Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

[Fwd: tomcat url rewriting protblem]

Christophe Andreoli

2004-06-09

Replies:



-------- Original Message --------
Subject: tomcat url rewriting protblem
Date: Tue, 08 Jun 2004 15:41:10 +0200
From: Christophe Andreoli <andreoli@(protected)>
Reply-To: "Tomcat Users List" <tomcat-user@(protected)>,
andreoli@(protected)
Organization: Institute of Human Genetics
To: Tomcat Users List <tomcat-user@(protected)>

Hello !


I just would like to redirect /mitop to /mitop2


I wrote in httpd.conf


RewriteEngine On
RewriteLog "/logs/rewrite.log"
RewriteRule ^/mitop /mitop2


I doesn't work and when I look at access.log , I see:




[08/Jun/2004:15:38:35 +0200]

 - - [08/Jun/2004:15:38:35 +0200] "GET /mitop HTTP/1.1" 302 659
- - [08/Jun/2004:15:38:35 +0200] "GET /mitop/ HTTP/1.1" 302 659
 - - [08/Jun/2004:15:38:35 +0200] "GET /mitop/start.jsp HTTP/1.1" 200


I seems that /mitop is rather redirected to /mitop/start.jsp

due to the welcome-file tag in web.xml

<welcome-file-list>
   <welcome-file>start.jsp</welcome-file>
  </welcome-file-list>


Do you know how I can redirect rather to /mitop2 ?



   Thanks !



 Christoph


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.