解决方案 »

  1.   

    RewriteEngine on#如果目录存在就直接访问目录不进行RewriteRule
    RewriteCond %{REQUEST_FILENAME} !-d#如果文件存在,就直接访问文件,不进行下面的RewriteRule.
    RewriteCond %{REQUEST_FILENAME} !-f#所有找不着实际路径的文件,统一交给index.php处理
    RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
      

  2.   

    apache有rewrite的功能,可能隐藏了index.php,然后程序有专门的URL路由代码
    你应该可以看代码找到。
      

  3.   

    <IfModule mod_rewrite.c>
    RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f#RewriteRule ^contacts\/(\d+)$ contacts.php?contacts=$1
    </IfModule>
      

  4.   


    apache我不太会用,我照着别人的弄了多个虚拟主机,
    你写的这些代码是直接放在httpd.conf里面,还是有个特定的位置,
    可否详细一些,感激不尽!
      

  5.   

    可以放在 httpd.conf 里面,也可以放在 .htaccess 里面
      

  6.   


    按照你的代码放在httpd.conf里面,根目录下也放了一个index.php,访问:
    http://localhost/csdfss/232
    页面显示:
    Bad RequestYour browser sent a request that this server could not understand.
      

  7.   

    要放在
    <IfModule mod_rewrite.c>
    </IfModule>
    节里搞服务器的都不知道这些?