location /redirect/ { rewrite ^/redirect/(.*)$ /redirect/index.php?id=$1 last; }