codingoniter configure nginx as follows:
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
After configuration, all unused directory files are redirected to index.php
The css js images in the resource folder of the root directory cannot be accessed and 404 is displayed.
How can I prevent the resource directory from being redirected? ? ?
codingoniter configure nginx as follows:
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
After configuration, all unused directory files are redirected to index.php
The css js images in the resource folder of the root directory cannot be accessed and 404 is displayed.
How can I prevent the resource directory from being redirected? ? ?
<code>tryfiles $uri $uri/ /index.php;</code>