I need to convert
RewriteEngine on
RewriteBase /generate
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*)/ index.php?file=$2
To nginx conf
Can anyone help me with this? Important: The htaccess was in a folder called generate Give me a suitable code that will replace the htaccess in that folder Please show me exact code , looks complicated for me:)
At the first time, you can try something like this:
but it is not recommended.
Using
try_files
instead: