If you, for example, want to redirect all web traffic at http://foo.org to http://bar.org/foo, you just run
foo# webredirect -t http://bar.org/foofoo#
... on the host foo.org.
In case foo.org is a virtual host (maybe even on the same physical
host as bar.org), you can tell
listen only at the foo.org interface (it must be a
real virtual host, i.e. foo.org must be a distinct
foo# webredirect -a foo.org -t http://bar.org/foofoo#
webredirect-a foo.org -t http://bar.org/foo
See the included man page for more details.
The C++ source for
webredirect is available from
is also available as a FreeBSD port (and binary package).
You're kidding, right?