You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lessault Jean-Luc <JL...@kheops.com> on 2001/05/18 16:50:38 UTC
To use URLRewriting with Tomcat 3.2.1
Hi all,
I am using Tomcat 3.2.1 with Apache 1.3
and I have the following problem:Perhaps that has been asked before, but I
am not sure
I want to rewrite a path from a form like 'http://host:port/file.html'
to something like
'http://host:port/ContextServlet/MyServletName?parameter=file.html').
(Note that the program works when i use the second URL form in the
browser).
So that, as it seems that Tomcat doesn't want to use .htaccess file, I
decided
to write the following instructions:
LoadModule rewrite_module module/mod_rewrite.dll
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ContextServlet/
RewriteRule ^file.html
/ContextServlet/MyServletName?parameter=file.html.
</IfModule>
in tomcat.conf or server.xml but with no result.
Any help will be greatly appreciate.
Enjoy the rest of the day.