ThinkPHP 3 rewrite 多个RewriteRule怎么写?

浏览:3172 发布日期:2014/02/27 分类:求助交流 关键字: rewrite RewriteRule
我在根目录中的.htaccess里写了如下内容:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ home/index.php/$1 [QSA,PT,L]
</IfModule>

是可以把aaa.com/home/index.php/Index/index 变为 aaa.com/Index/index,
这一点可以做到了。但是,我还想让:
aaa.com/shop/index.php/Index/index 变为 aaa.com/shop/Index/index ,该怎么写呢?

注:在aaa.com下有home目录和shop目录,这两个目录是同级的。

最佳答案
评论( 相关
后面还有条评论,点击查看>>