Apache下的:
RewriteEngine onRewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
Nginx下的:
set $tfi 'NONE';
if (!-f $request_filename){
set $tfi $request_filename;
}
if ($tfi !~ "NONE"){
rewrite ^/(.*)$ /index.php/$1;
}