location / { index index.html index.htm index.php; rewrite ^/(.*)$ /index.php?/; }
The regular part of the configuration file is as above, but files ending in .css and .jpg have also been rewritten. How can I block it?
淡淡烟草味2017-05-16 17:31:13
location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=/ last; #rewrite模式 rewrite ^(.*)$ /index.php/ last; #pathinfo模式 任选其一 } }