How to Add a New Domain to cPanel
How to Flush Your Operating System’s DNS Cache
You can redirect an entire domain or just individual pages, but we’ll focus on redirecting everyone who visits the domain.

In cPanel, select Redirects from the Domains section of the main page menu.

On the Redirects page, select Permanent (301) or Temporary (302) from the first dropdown menu. From the second dropdown, choose the domain you wish to redirect. If we were redirecting a page, we’d enter the path in the following field, but we can leave it blank.
Finally, add the new destination domain, including the protocol (https://), in the Redirects to field and click Add.
In the most straightforward case, that’s all you need to do, but there are also options to configure how the “www” subdomain is treated and a Wild Card Redirect option, which will redirect all of a site’s pages to the same URL.