整个httpd.ini中只有两条规则不生效,这个是怎么回事?在本地测试是没问题的,规则是:
RewriteRule ^/tlist-ps-(.*)-p-(.*)\.html$ /tlist\.php?q=$1&page=$2
RewriteRule ^/tlist-cid-(.*)-p-(.*)\.html$ /tlist\.php?cid=$1&page=$2
在根目录tlist.php也存在,这到底是怎么回事呀

解决方案 »

  1.   

    看看我的
    RewriteEngine on# 修改以下语句中的 /eglive 为网站目录地址,如果程序放在根目录則修改为 /(修正PHP100的解析錯誤問題)
    RewriteBase /# hotel
    RewriteRule ^hotel_(.*)$ hotel.php?id=$1 [NC]# room
    RewriteRule ^room_(.*)$ room.php?id=$1 [NC]只要加入路徑就生效了.
      

  2.   

    RewriteRule ^/tlist-ps-(.*)-p-(.*)\.html$ /tlist\.php\?q=$1&page=$2
    RewriteRule ^/tlist-cid-(.*)-p-(.*)\.html$ /tlist\.php\?cid=$1&page=$2