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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > BUG: The document has been permanently moved to <A HREF="%s">here</A>

Reply
 
Thread Tools Display Modes
  #1  
Old 03-14-2007, 04:16 PM
phallstrom phallstrom is offline
Member
 
Join Date: Jan 2007
Posts: 28
Default BUG: The document has been permanently moved to <A HREF="%s">here</A>

Hi -

We have several redirects and while they work, during some debugging today I think I see a problem.

Here's the snippet from the XML configuration:

Code:
    <context>
      <type>redirect</type>
      <uri>/forums</uri>
      <externalRedirect>1</externalRedirect>
      <statusCode>301</statusCode>
      <location>http://forums.ourdomain.com/forums/</location>
      <note></note>
      <allowOverride></allowOverride>
      <realm></realm>
      <authName></authName>
      <required></required>
      <accessControl>
        <allow></allow>
        <deny></deny>
      </accessControl>
      <authorizer></authorizer>
    </context>
When I trigger this URL with curl I get the following:

Code:
curl -v http://www.ourdomain.com/forums/

* About to connect() to www.ourdomain.com port 80
*   Trying 123.123.123.123... * connected
* Connected to www.ourdomain.com (123.123.123.123) port 80
> GET /forums/ HTTP/1.1
User-Agent: curl/7.13.1 (powerpc-apple-darwin8.0) libcurl/7.13.1 OpenSSL/0.9.7l zlib/1.2.3
Host: www.ourdomain.com
Pragma: no-cache
Accept: */*

< HTTP/1.1 301 Moved Permanently
< Server: LiteSpeed
< Date: Wed, 14 Mar 2007 23:12:14 GMT
< Location: http://forums.ourdomain.com/forums/
< Content-Type: text/html
< Content-Length: 414
<html>
<head><title> 301 Moved Permanently
</title></head>
<body><h1> 301 Moved Permanently
</h1>
The document has been permanently 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>
* Connection #0 to host www.ourdomain.com left intact
* Closing connection #0
The redirect works because of the Location header, but if that didn't get picked up for some reason it would show the HTML below and the HREF attribute of the link is always set to "%s", not the actual link itself.

This is occuring on 3.0RC2.
Reply With Quote
  #2  
Old 03-14-2007, 07:03 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
That's the current behavior of default 3xx pages, will be addressed when we add a server side include page support.
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 03:26 PM.



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