我已经像那样重写了.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>
我尝试转换NGINX重写 但没有成功
# nginx configuration location / { rewrite ^(.*)$ http://%1/$1 redirect; if (!-e $request_filename){ rewrite ^(.*)$ /index.php/$1 break; } }
任何人都可以帮助我吗?