本人想将 http://localhost/Demo/mvc/public/index/index 通过rewrite重写成
http://localhost/Demo/mvc/public/index.php?c=index&a=index
编写规则如下:
RewriteEngine On
RewriteRule ^.*public$ public/index.php
RewriteRule ^.*public/(\w*)/(\w*)$ public/index.php?c=$1&a=$2
但是好像重写不成功,望哪位大神帮忙看看,谢谢啦。