nginx.htaccess 280 B

123456789101112
  1. location / {
  2. if (!-e $request_filename){
  3. rewrite ^(.*)$ /index.php?s=$1 last; break;
  4. }
  5. }
  6. location /api {
  7. index index.php index.html index.htm;
  8. if (!-e $request_filename)
  9. {
  10. rewrite ^/api/(.*)$ /api.php?s=$1;
  11. }
  12. }