location / { # Redirect everything that isn't a real file to index.php try_files $uri $uri/ /index.php?$args; }