Eidt config file as ;
Code: 
 
server { 
listen *:80;
 location / {
 root   /var/www/html;
 index index.php index.html;

  # if file exists return it right away

 if (-f $request_filename) { break; }  

# otherwise rewrite the f**ker

 if (!-e $request_filename) { 
rewrite ^(.+)$ /index.php$1 last; break;
 }  }