-----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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to