类似于这样http://whois.domaintools.com/csdn.net 不带?的查询地址是怎么做的?一般参数都是通过?传递的,但是上面这样,不带?的查询地址是怎么做的啊?谢谢~

解决方案 »

  1.   

    伪静态技术,自动将/csdn.net转换为/index.php?domain=csdn.net。
    具体参看apache的rewrite模块。
      

  2.   

    URL 重写的。
    ecshop 里面的那htaccess.txt 这个文件里面有很多通用的重写,可以对照一下。
      

  3.   

     function Learn_URL_rewrite()
    {
       if($this->user->google('rewrite')=='True')
        {
            $this->user->config('apache');
            $knowledge=$this->user->write('.httacess');
            $this->user->associate('SEO',& $knowledge);
           return $this->user->write_php_to($knowledge);
        }  
       return "Fool or Nerd";
    }
      

  4.   

    伪静态技术,如上所说,rewriter技术
    去我的网站看看,例如下面的,是用户livehope注同资料
    http://www.skyhope.cn/user/livehope.html一般要编辑httpd.ini文件,后缀可能不是ini
    例:
    RewriteRule /user/([0-9]+)\.html /technic\.html\?action=listplay&id=$1 [N,I]