tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Subir Sengupta" <su...@walmart.com>
Subject RE: Problem with redirecting .jsp file requests with .htaccess
Date Fri, 30 Jan 2004 00:26:05 GMT
Could it be this bug:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3D25055=20
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3D25055=20> 

-----Original Message-----

From: Francois Masson [mailto:francois.masson@dartfish.com]=20
<mailto:francois.masson@dartfish.com]=20> 

Sent: Thursday, January 29, 2004 5:27 AM

To: tomcat-user@jakarta.apache.org

Subject: Problem with redirecting .jsp file requests with .htaccess

 

 

Hi,

I am using Apache 2, Tomcat 4.1.29 and the ajp13 connector (under Fedora

FC1) to connect Apache and Tomcat together. I have a problem with the=20
.htaccess directives for .jsp files. In the httpd.conf config,=20
AllowOverride is set to All in order to process the directives that I=20
put in the .htaccess file. The redirection directives works fine for all

kind of files (html, jpg,...) but .jsp pages. The problem seems to be=20
that the .htaccess directives used for redirecting some specific .jsp=20
requests are ignored by Apache who transmits directly the request to
Tomcat.

For instance, if I want Apache to redirect the files file1.html and=20
file1.jsp to respectively file2.html and file2.jsp, I put the
following=20 directives in my .htaccess file in the same directory:

Redirect /file1.html http://mywebsite.com/file2.html
<http://mywebsite.com/file2.html> 

Redirect /file1.jsp http://mywebsite.com/file2.jsp
<http://mywebsite.com/file2.jsp> 

The first redirection works perfectly fine (i.e.=20
http://mywebsite.com/file1.html <http://mywebsite.com/file1.html>  is
redirected to=20 http://mywebsite.com/file2.html
<http://mywebsite.com/file2.html> ), but the second redirection fails.
I=20 cannot manage to redirect http://mywebsite.com/file1.jsp
<http://mywebsite.com/file1.jsp>  to=20 http://mywebsite.com/file2.jsp
<http://mywebsite.com/file2.jsp> .

Can anyone help ? It seems to me that the JkMount /*.jsp wrkr directives

has full priority over the redirection mechanism of .htaccess files ?

Thanks in advance for your help.

Francois

 

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org

For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message