location / {
    try_files $uri $uri/ $uri.php?$args;
}