i'm playing with nginx and got small issue with configuration.
I need to port this .htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
to my nginx configuration, but i dont have idea how to do that properly.
Tried
location /shop {
rewrite ^(.*)$ /index.php/$1 last;
}
but it doesn't work. Someone could help me?
location /shop { try_files $uri $uri/ /index.php?$query_string; } Try this
Обсуждают сегодня