以下是apache的形式,想换成nginx的rewite,请教各位大佬帮助,谢谢
RewriteEngine on
RewriteCond %{http_host} ^a.com [NC]
RewriteRule ^(.*)$ http://www.a.com$1 [R=301,L]
RewriteRule ^/track/(.*)$ /b/b/r.php?param=$1 [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/((?!\.).)*(?<!\/)$ $0/ [R=301,L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !^/(public|admin)/{0,1}
RewriteRule ^/ /index.php [L]
大佬来帮你了