tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carol Cheung <cache...@consumercontact.com>
Subject trouble with url rewrite
Date Wed, 11 Feb 2009 17:23:48 GMT

I'm trying to user UrlRewrite for the following task:

If the user types http://localhost.whatever.com:8080/first/
I want the url redirected to
http://localhost.whatever.com:8080/second/here/user/index.jsp,
but the url that the user sees is still
http://localhost.whatever.com:8080/first/

When I go to http://localhost.whatever.com:8080/first/, I get a 404 error.

Can anyone shed some light on what I am doing wrong?

I'm using Tomcat 5.5

I have the urlrewrite jar in lib

Here's a portion of web.xml:
  <filter>
    <filter-name>UrlRewriteFilter</filter-name>
   
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
    <init-param>
      <param-name>logLevel</param-name>
      <param-value>WARN</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>UrlRewriteFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

And here's urlrewrite.xml
<urlrewrite>
    <rule>
        <from>/first/$</from>
        <to>/second/here/user/index.jsp</to>
    </rule>
</urlrewrite>

Thanks in advance,
Carol
-- 
View this message in context: http://www.nabble.com/trouble-with-url-rewrite-tp21958274p21958274.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message