Sometimes all you need to do is to redirect customers to another domain, with same query he had. It is easy to do with .htaccess if you have Apache, but if you have nginx, you have to ask your server administrator to do that.
If you are a server administrator, here’s the trick:
Log in as admin, go to Custom HTTPD Configurations.
Choose the domain name you need
In the very first section add this line:
return 301 https://www.newdomain.com$request_uri;
Replace newdomain.com with your own domain, and hit Save. That’s all! Wait for nginx to reboot, and now you should be able to get it working!