<IfModule mod_rewrite.c>
Options +FollowSymli
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
求解
nginx default.conf配置文件
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
set $real_sc
if ($fastcgi_sc
set $real_sc
set $path_info $2;
}
fastcgi_param sc
fastcgi_param sc
fastcgi_param PATH_INFO $path_info;
}
最佳答案
