rewrite htaccess apache to nginx rewrite htaccess apache to nginx nginx nginx

rewrite htaccess apache to nginx


Try this:

if ($request_uri !~ "^(index.php|static|favicon.ico|robots.txt|sitemap.xml|google(.+).html)"){    rewrite ^/(.*)$ /index.php?/$1 last;}