In cPanel, you’re able to set up any necessary redirects through a simple submission form. Head to your cPanel account, Home > Domains section and locate Redirects.
Follow these instructions to complete the form and properly setup a domain redirect to your primary domain (please review image below for guidance):
Step 1: Select Permanent (301)
Step 2: Select the domain you want redirected from the **All Public Domains** dropdown
Step 3: Enter the URL you wish to send the user to in the Redirects to text box
Step 4: In the www.redirection: choices section choose one of the options
b. Redirect with or without www. – This option is universal, no matter how the user enters the URL they will be redirected to the new website
c. Do Not Redirect www. – If the user enters www then they will not be sent to the new website, only without the prefix will they be moved
Step 5: Click the Add button
This will update your .htaccess file within cPanel >> File Manager for redirecting.
How To Delete A Redirection
After adding a redirection, you may need to delete for multiple reasons. One reason might be that the redirection produces an error, thus you need to delete for further troubleshooting. Locate the Redirects option in your cPanel as mentioned above. Any redirection currently created can be reviewed at the bottom of this page. Fine and select the Delete button to delete a current redirection.