Help write the rule. Frontend works well like this:
location / { index index.php; # serve static files directly if (-f $request_filename) { access_log off; expires 30d; break; } ### MAIN REWRITE - This will ignore directories if (!-d $request_filename) { rewrite ^/(.*)$ /index.php$query_string last; } }
But the admin was able to run only this way:
rewrite ^/cp/(.*)$ /cp/index.php$query_string last;
On the front, everything works, and in the admin js, img, css 404, but in the folder they are. Requests in the admin of this nature /cp/faq/list/0.htm