Change

dst,0,10)==”/archives/”){
$noder=substr_replace($node->dst,”../”,0,1);
echo $noder;
db_query(“UPDATE {url_alias} SET dst = ‘”.$noder.”‘ WHERE pid = ‘”.$node->pid.”‘”);
}

}

} else {
// I had problems with the l() call below, so I replaced it.
echo (‘start‘);
}

?>