0)) { if(!strstr($reverseEx[0],".")) { if(!$reverseEx[0]{0} == "/") $canonical = $canonical . "/"; } } } // Force NEVER a trailing slash on directories if($trailslash == 2) { $explosi0n = explode("/",$canonical); $reverseEx = array_reverse($explosi0n); // if URI is a directory name rather than file name if(strlen($reverseEx[0] > 0)) { if(!strstr($reverseEx[0],".")) { if(!$reverseEx[0]{0} == "/") $canonical = substr($canonical,0,strlen($canonical)-1); } } } // return $canonical return $canonical; } echo ''; ?>