code=PHP]
<?php
echo '<a href="'.tep_href_link('ceshi2.php','a=2&c=3').'">fdsfds</a>';
function tep_href_link($page,$parameter='')
   {
    $link="http://localhost/website/";//这里改为自己的目录
    if(!is_null($parameter))
    {
    $link.=$page."?".$parameter;
    }
    else 
    {
    $link.=$page;
    }
    $link=str_replace("&","/",$link);
    $link=str_replace("=","/",$link);
    $link=str_replace("?","/",$link);
    return $link;
   }
?>
[/code]

解决方案 »

  1.   


    <?php
    echo '<a href="'.tep_href_link('ceshi2.php','a=2&c=3').'">fdsfds</a>';
    function tep_href_link($page,$parameter='')
       {
        $link="http://localhost/website/";//这里改为自己的目录
        if(!is_null($parameter))
        {
        $link.=$page."?".$parameter;
        }
        else 
        {
        $link.=$page;
        }
        $link=str_replace("&","/",$link);
        $link=str_replace("=","/",$link);
        $link=str_replace("?","/",$link);
        return $link;
       }
    ?>
      

  2.   

    刚刚回了一个帖子是关于apache重写的
    地址:http://topic.csdn.net/u/20080214/17/65b3c133-c954-4b1b-ae68-0f1a06bc78c0.html
    貌似和你这个满像
      

  3.   

    就是通过apache的rewrite来实现的,你可以参考一下来做