Nigix Redirect

location / {
         # Redirect all requests that don't start with /.well-known
         if ($request_uri !~ ^/.well-known/) {
             return 301 https://g.mct.it.com$request_uri; # Or your desired redirect URL
         }
     }
}