Step 1 -  Login to cPanel

Log in to your dashboard cPanel and go to the Domains section, and look for the Redirects item.

\
![](https://support2.scriptcase.net/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZzFSIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--f5ed14f9e22567bf6544a5251b3ad0d6853dfb3c/image%20(98).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.

![](https://support2.scriptcase.net/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZzVSIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2fb37ef379100976702bd7e9f19b91996ebcda1e/image%20(99).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”.