Answer the question
In order to leave comments, you need to log in
What would this code look like on NginX?
The essence of the code is that all requests will be processed by the index.php file.
When I had Apache, everything was clear: I wrote it in .htaccess and you're done.
But recently I moved to NginX. How to do the same on NginX ?
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question