I’m not sure I’m using a robots.txt currently.
Only the domain and the tld are changing.
Is it not possible to change the domain without having to export the contents, make a replace, and import into a new blog?
The configurations for Nginx redirect should be these, I think they are correct:
listen 443 ssl http2;
listen [::]:443 ssl http2;
return 301 https://NEW_DOMAIN.it$request_uri;
Theoretically, even the files have to change their names, because as a name they have the current domain that will change.