项目用的是phpcms
#RewriteEngine on #RewriteCond %{E:/wamp/www/vqs}%{REQUEST_FILENAME} !-d #RewriteCond %{E:/wamp/www/vqs}%{REQUEST_FILENAME} !-f #RewriteRule ^/Html/Index/index/(\d*).html$ /index.php?m=vqs&c=index&a=index&page=$1 #RewriteRule ^/Html/Index/items/(\d*)_(\d*).html$ /index.php?m=vqs&c=index&a=items&type=$1&page=$2 这是在httpd-vhosts.conf中配置的rewrite是可以生效的。(测试是去掉注释的。) .htaccess中的规则: RewriteEngine on #RewriteLog "E:/wamp/www/logs/rewrite1.log" RewriteBase / RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f RewriteRule ^/Html/Index/index/(\d*).html$ /index.php?m=vqs&c=index&a=index&page=$1 RewriteRule ^/Html/Index/items/(\d*)_(\d*).html$ /index.php?m=vqs&c=index&a=items&type=$1&page=$2 如果配了记录日志则全部挂掉,注释了日志。则提示: The requested URL /Html/Index/index/1.html was not found on this server. 伪静态规则没有生效,这个该如何解决呢?是哪里出了问题? |
|