permalinks – Migrate wordpress from nginx to static

I currently have a wordpress site using simple links for each message (that is, /? P = 123) above nginx. I want to migrate this site to a static site only, but I do not want to ruin the links of other blogs to mine and the results of search engines on the blog as well.

There are some plugins that will convert my site to static, but they all require non-simple permalinks when I have them. Plus, just about every instruction I can find is about 302 redirects with apache2. I'm running nginx.

Is there a way to do this? I guess it would be done in stages. First, I have to change permalinks to make it work. Then I have to run 302, then? P = 123 is redirected to the correct permalink. Finally, convert everything to static.