nginx.htaccess 433 B

123456789101112131415161718192021222324252627
  1. location / {
  2. index index.php index.html index.htm;
  3. if (!-e $request_filename)
  4. {
  5. rewrite ^/(.*)$ /index.php?s=$1;
  6. }
  7. }
  8. location /api/ {
  9. index index.php index.html index.htm;
  10. if (!-e $request_filename)
  11. {
  12. rewrite ^/api/(.*)$ /api.php?s=$1;
  13. }
  14. }
  15. location ~* ^\/upload\/.+\.(html|php)$ {
  16. return 404;
  17. }
  18. location ~* ^\/plugins\/.+\.(html|php)$ {
  19. return 404;
  20. }
  21. location ~* ^\/themes\/.+\.(html|php)$ {
  22. return 404;
  23. }