This is the redirect script provided by Yoast.
location /redirect/ { rewrite ^/redirect/(.*)$ /redirect/index.php?id=$1 last; }
But the question is where do I put it in the Nginx.
I tried this: ee site edit example.com
But couldn’t find the “location /” as stated by yoast.
please see the script on Github: https://gist.github.com/jdevalk/5623050
Thanks.