I set-up a Redirect context with an external URL. The headers look OK, but the HTML text doesn't.
HTTP/1.0 302 Found
Date: Wed, 16 May 2007 06:53:30 GMT
<head><title> 302 Found
<body><h1> 302 Found
The document has been temporarily moved to <A HREF="%s">here</A>.<hr />
Powered By <a href='http://www.litespeedtech.com'>LiteSpeed Web Server</a><br />
<font face="Verdana, Arial, Helvetica" size=-1>Lite Speed Technologies is not responsible for administration and contents of this web site!</font></body></html>
Note the "%s" in the <A HREF...> tag instead of www.foo.com.
This happens with a typo3 installation (PHP). typo3 admin is in the directory www.domain.com/typo3. So when the user enters www.domain.com/typo3 (without slash) he gets the 301 page without an actual redirect (without the Location header and with %s). When he enters www.domain.com/typo3/ (with slash) it works.
In the directory /typo3 there is an normal index.php.
PHP 5.2.3 with LSAPI 4.0