在顶级栏目的category页放入如下代码:

<?php if($child){     $child_arrary=explode(',',$arrchildid);        $to_url=$CATEGORYS[$child_arrary[0]][url];  echo "<script>window.location.href='".$to_url."'</script>";
    }?>

如果子栏目是文章模型,则需要有list页