Nginx(在Nginx.conf中添加):
location / { root /web/tool; index index.php index.html index.htm; try_files $uri $uri/ /index.php?$query_string; if ( !-e $request_filename) { rewrite ^(.*)$ /index.php/$1 last; break; } autoindex on; }