Apply on: Linux (Cpanel) Hosting
Some time you might require redirecting traffic of your one domain to another domain. This requirement could be maintenance of your first domain.
This redirect will route all traffic from firstdomain.com to secondDomain.com. The sub pages like firstdomain.com/mypage.html also can redirect to secondDomain.com/newPage.html
To do this redirect, log into your cPanel account and, then click on "Redirects" button. This button is under the "Domains" sub-header.
By default any redirects will be a Permanent Redirect. In the drop down choose the domain you want to forward, and then in the redirects to--> box put what domain you want the traffic redirected to.
Once you are done, click on "Add" button:
You have several options When setting of redirecting a domain.
The www redirection option allows you to configure how to handle redirects in regard to the www subdomain. For example, you can only apply the redirect when www is included (or when it is not), or you can apply the redirect regardless of whether the user types in www or not.
Wild Card Redirect
If you plan on redirecting all pages within firstdomain.com to secondDomain.com, then choose the option for a Wild Card Redirect. For example, selecting this option would redirect firstdomain.com/page.html to secondDomain.com/page.html.
This need to note that that everything after firstdomain.com/ (in this example "page.html") was added after secondDomain.com/.