View Single Post
Old 03-31-2004, 11:48 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Good eye! Yes, I see the problem when a link like http://sub.domain.com is encountered without an ending slash. Untested, but an alternative solution might be the following:
PHP Code:
if (($regs[5] != "") && ($regs[8] == "")) {
     
$links[$index] = array("path" => """file" => "");
}
elsif (substr($regs[8],0,1) == "/") {
     
$links[$index] = phpdigRewriteUrl($regs[8]);
}
else {
     
$links[$index] = phpdigRewriteUrl($path.$regs[8]);

__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote