LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Redirect string unexpanded

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2007, 12:03 AM
zellster zellster is offline
Senior Member
 
Join Date: Sep 2004
Posts: 55
Default Redirect string unexpanded

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.
Reply With Quote
  #2  
Old 05-16-2007, 10:51 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
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.
Reply With Quote
  #3  
Old 09-05-2007, 01:14 AM
sofatime sofatime is offline
Senior Member
 
Join Date: Jul 2006
Location: Switzerland
Posts: 59
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)
Reply With Quote
  #4  
Old 09-05-2007, 06:14 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Missing location header is fatal, what script language are you using?
Can you give an example script?
Reply With Quote
  #5  
Old 09-05-2007, 06:58 AM
sofatime sofatime is offline
Senior Member
 
Join Date: Jul 2006
Location: Switzerland
Posts: 59
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
Reply With Quote
  #6  
Old 09-05-2007, 09:56 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Please try 3.2.2 release.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:43 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.