php den ek ngix kodlarına şunları ekleyip deneyin

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