Dear awarnier. Ok, Now I found such WEB-INF directory (in my app it's C:\ibi\WebFOCUS76\webapps\webfocus76\WEB-INF), and followed the installation and configuration steps.
1) copied urlrewrite.xml into such WEB-INF 2) edited web.xml with the below lines: <filter> <filter-name>UrlRewriteFilter</filter-name> <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> </filter> <filter-mapping> <filter-name>UrlRewriteFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> 3) edited urlrewrite with my own rewriting config: <rule> <from>/car</from> <to type="redirect">/ibi_apps/WFServlet?IBIF_ex=carinst</to> </rule> 4) copied urlrewrite-2.6.0.jar into WEB-INF/lib directory 5) restarted Tomcat Though redirection didn't work, but furthermore when I try to see http://localhost:8080/rewrite-status, I get the below error: Estado HTTP 404 - /rewrite-status -------------------------------------------------------------------------------- type Informe de estado mensaje /rewrite-status descripción El recurso requerido (/rewrite-status) no está disponible. -------------------------------------------------------------------------------- Apache Tomcat/5.5.25 Already looked into urlrewrite.xml and such rule is there: <rule> <note> The rule means that requests to /test/status/ will be redirected to /rewrite-status the url will be rewritten. </note> <from>/test/status/</from> <to type="redirect">%{context-path}/rewrite-status</to> </rule> WHAT AM I DOING WRONG??? APPRECIATTE YOUR HELP ON THIS. Rodrigo. awarnier wrote: > > Rodro wrote: >> Dear Tomcat Users. >> I'm trying to do a URL masking on Tomcat 5.5.25. >> >> What I specifically want to do is: >> I execute (call) an app with the following URL: >> http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst >> Now, I need to mask the URL to get the same result calling the app as: >> http://localhost:8080/car >> i.e. mask "/ibi_apps/WFServlet?IBIF_ex=carinst" as "/car". >> >> I found a Solution with URLREWRITE on >> http://tuckey.org/urlrewrite/manual/2.6 >> Under "Install" I see on STEP 1: “Download the zip (or tar.gz) and >> extract it into your context'sdirectory ie, so that urlrewrite.xml goes >> into >> the WEB-INF directory”. >> >> However, looking into my file directory I found 6 WEB-INF directories: >> C:\Archivos de programa\Apache Software Foundation\Tomcat >> 5.5\webapps\ROOT >> C:\Archivos de programa\Apache Software Foundation\Tomcat >> 5.5\webapps\tomcat-docs >> C:\Archivos de programa\Apache Software Foundation\Tomcat >> 5.5\server\webapps\admin >> C:\Archivos de programa\Apache Software Foundation\Tomcat >> 5.5\server\webapps\host-manager >> C:\Archivos de programa\Apache Software Foundation\Tomcat >> 5.5\server\webapps\manager >> C:\Archivos de programa\Apache Software Foundation\Tomcat >> 5.5\webapps\tomcat-docs\appdev\sample\web >> >> In which one should I extract the zip file into? >> Thanks and best regards. >> Rodrigo Allende. > > Rodrigo, > somewhere above there, you mention your original URL > http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst > > So, apart from all the webapp/* directories which you are mentioning > just above here, you must have a /ibi_apps/WEB-INF directory somewhere, no > ? > If you do, then that's the one in which you should unpack that zip. > And if you don't, then there is something that you are not telling us.. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Tomcat-URL-Rewrite.-Help-with-configuration.-tp22446210p22461196.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org