apache:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /shop/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
nginx,rewrite重写index.php,但是另外一个RewriteBase /shop/不知道怎么实现。
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}