Override Domain With Nginx

You can easily override domain with simple nginx configuration, full request uri to your old domain are forwarded to your new one.

server {
    server_name old.domain.com;
    return 301 https://new.domain.com$request_uri;

    # ... other configs
}