View Single Post
Old 12-06-2004, 02:23 AM   #4
blueyed
Green Mole
 
Join Date: Sep 2004
Posts: 19
Fix for the fix.. replace the code I've suggested with this one.

The previous code would build links like "someuri.html?page=5?page=6".. :/

Code:
elseif( $regs[8]{0} == '?' )
{ // path/file is a query string - cut it from base file
  $links[$index] = phpdigRewriteUrl( $path.preg_replace( '#\?.*#', '', $file ).$regs[8] );
}
It's below
Code:
elseif (substr($regs[8],0,1) == "/") {
  $links[$index] = phpdigRewriteUrl($regs[8]);
}
and above
Code:
else {
  $links[$index] = phpdigRewriteUrl($path.$regs[8]);
}
blueyed is offline   Reply With Quote