thinkphp.conf 147 B

123456
  1. location / {
  2. if (!-e $request_filename) {
  3. rewrite ^/(.*)$ /index.php/$1;
  4. #rewrite ^/subdir/(.*)$ /subdir/index.php/$1;
  5. }
  6. }