Come faccio a replicare in nginx ciò che ho fatto in htaccess?

Understanding the Nginx Configuration File Structure and Configuration Contexts | DigitalOcean
F5 NGINX Product Documentation

I have pointed to the tools you need. And there are hundreds of nginx tutorials online. Nothing personal, but if that is not enough, you need to hire admin to do it for you.