Step 1 - Login to cPanel
Log in to your dashboard cPanel and go to the Domains section, and look for the Redirects item.
.png)
Step 2- Add redirect
1- On this screen choose between a redirection type
Permanent (301)
Temporary (302)
2- In “https?://(www.)?” select the domain that will be redirected
3- If you want to redirect to a specific directory, use the “/” field to set that directory.
4- In “Redirects to” enter the destination domain.
.png)
5 - In “www redirect:” it is recommended to always use the Redirect with or without www option
6 - Observation:
Checking the Wildcard Redirection box will redirect all files within a directory to the same filename in the redirected directory.
You cannot use a wildcard redirect to redirect the main domain to a different directory on your site.
7 - Finally, just click “Add”.