Redirect string unexpanded

Discussion in 'Bug Reports' started by zellster, May 16, 2007.

  1. zellster

    zellster New Member

    LSWS Standard 3.1.1
    Linux/Ubuntu 32-bit

    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
    Server: LiteSpeed
    Connection: close
    Location: http://www.foo.com/
    Content-Type: text/html
    Content-Length: 390

    <html>
    <head><title> 302 Found
    </title></head>
    <body><h1> 302 Found
    </h1>
    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.
  2. mistwang

    mistwang LiteSpeed Staff

    Yeah, we aware of it. The link in the page is not visible in most browsers. So, we just leave it as is for now.

    Thanks.
  3. sofatime

    sofatime New Member

    I have the same problem, except it is for a 301 and that the Location-Header is missing. So the redirect does not work.
    (lsws 3.2.1 Enterprise on Solaris 10 x86)
  4. mistwang

    mistwang LiteSpeed Staff

    Missing location header is fatal, what script language are you using?
    Can you give an example script?
  5. sofatime

    sofatime New Member

    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
  6. mistwang

    mistwang LiteSpeed Staff

    Please try 3.2.2 release.

Share This Page