At anyrate, I think you need to have the proper flags set at the end of the RewriteRule:
RewriteEngine On RewriteLog "/logs/rewrite.log" RewriteRule ^/mitop /mitop2 [R]
or better yet:
RewriteRule ^/mitop/(.*) /mitop2/$1 [R]
The second one will rewrite even direct URLs someone might have in a bookmarks file.
Check out these pages for more info on mod_rewrite:
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html http://httpd.apache.org/docs-2.0/misc/rewriteguide.html
--David
Christophe Andreoli wrote:
-------- Original Message --------
Subject: tomcat url rewriting protblem
Date: Tue, 08 Jun 2004 15:41:10 +0200
From: Christophe Andreoli <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Organization: Institute of Human Genetics
To: Tomcat Users List <[EMAIL 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
