Menu

#48 FIX for [ 1156473 ] http redirect does not work right

open
nobody
None
5
2005-06-08
2005-06-08
Anonymous
No

Replace the two occurances of

$this->_redirectaddr .= "/".$matches[2];

with

$this->_redirectaddr .= substr($url, 0, strrpos($url, '/') + 1).
$matches[2];

Discussion

  • Nobody/Anonymous

    Logged In: NO

    The same thing can be achieved by replacing the line(s)
    above with

    $this->_redirectaddr .= dirname($URI_PARTS['path']).$matches[2];

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry, I forgot a slash in my post. Here it is:

    $this->_redirectaddr .=
    dirname($URI_PARTS['path'])."/".$matches[2];

     

Log in to post a comment.