如果使用了vhost 就需要到
/usr/local/nginx/conf/vhost/你的专属.conf 
编辑这个conf  
找到
#error_page 404 /404.html;
include enable-php.conf;
在下面增加
if (!-e $request_filename) {
 rewrite  ^(.*)$  /index.php?s=$1  last;
 break;
  }
形成
        include other.conf;
        #error_page   404   /404.html;
        include enable-php.conf;
if (!-e $request_filename) {
 rewrite  ^(.*)$  /index.php?s=$1  last;
 break;
  }
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }
保存 重启Nginx即可