tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DIGLLOYD INC <digllo...@diglloyd.com>
Subject Re: simple way to rewrite simple URL portion
Date Thu, 24 Apr 2008 17:04:49 GMT
Thank you Christopher I'll take a look at the link.  More than I need  
now, but maybe there will be other uses too...

(I'm just running Tomcat standalone, no httpd in front)


On Apr 24, 2008, at 10:01 AM, Christopher Schultz wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Lloyd,
>
> DIGLLOYD INC wrote:
> | I'm looking for a very very basic URL-rewriting filter--simple text
> | substitution.  I suppose I can write my own since the  
> functionality I
> | need is so limited, but I was hoping there was something built-in in
> | Tomcat.
>
> Not built-in, but definitely exists:
>
> http://tuckey.org/urlrewrite/
>
> | For past reasons, I get requests that include the path "bike/free".
> | Right now those all 404 into /errors/error404.html.  The bike/free
> | requests will probably stay around for years (hundreds of  
> originating
> | links), so I want to permanently map "bike/free" to "diglloyd/ 
> free" eg:
> |
> |     http://diglloyd.com/bike/free/...
> | to:
> |     http://diglloyd.com/diglloyd/free/...
> |
> | What's the easiest way to alter any URL containing "bike/free" to  
> read
> | "diglloyd/free"?
>
> If you are using Apache httpd to front your Tomcat, you can probably  
> use
> either mod_rewrite (upon which the above urlrewrite was based) or the
> simpler RedirecrPermanent directives to achieve the same goal. I  
> believe
> Apache httpd configuration might be a bit simpler, but don't add  
> Apache
> httpd to your configuration just for this -- it would be a huge  
> waste of
> effort and added complexity.
>
> - -chris
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkgQvN4ACgkQ9CaO5/Lv0PCzKACdGi0QMyJLcRaZQthBuBjDfmYJ
> Ei4AnjhBd5Lkl31zzG/diVHjhmONdJRU
> =OIqw
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

Lloyd Chambers
http://diglloyd.com

[Mac OS X 10.5.2 Intel, Tomcat 6.0.16]





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


Mime
View raw message