L,

You need to add the [PT] parameter to your rewrite rule - it worked for
me!!


regards
Scott Farrell

http://www.icconsulting.com.au
ic Consulting - integrating your business in a web world.
We offer e-business consulting and perform services. We deliver high impact
consulting, and fast turn around projects for our clients.
Ask us about Web Content Management,  Web Self Service, or working closer
with your customers or suppliers.

0412 927 156,   02 9411 3622  mailto:[EMAIL PROTECTED]



                                                                                       
                                          
                    Lessault                                                           
                                          
                    Jean-Luc              To:     "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>            
                    <JL.Lessault@k        cc:                                          
                                          
                    heops.com>            Subject:     RewritingURL with Tomcat3.2.1   
                                          
                                                                                       
                                          
                    21/05/2001                                                         
                                          
                    06:33 PM                                                           
                                          
                    Please respond                                                     
                                          
                    to tomcat-user                                                     
                                          
                                                                                       
                                          
                                                                                       
                                          





Hi all,
I am using Tomcat 3.2.1 with Apache 1.3
and I have the following problem:


  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.






Reply via email to