There may be times that you need to redirect traffic from one domain to another. For example, you may need to route all traffic from example.com to example.net. You can also redirect specific pages, such as example.com/info.html to example.net/anotherPage.html. This can easily be accomplished in your cPanel. Alternately, you can edit your .htaccess file directly if you want to custom-code the redirect rules.
Click the Redirects link in the Domains section.
In the Type section choose if you want to create a Permanent (301) or Temporary (302) redirect. Generally, any redirects will be Permanent (which is the default).
In the next drop-down choose the domain you want to forward.
If you want to redirect a specific file (such as info.html) enter it in the blank forward slash '/' field.
In the Redirects to box enter the domain you want the traffic redirected to.
In the "www. redirection" section choose how you want to handle 'www' redirects. 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. We also have a full guide on Redirecting Your Domain to www or non-www URL.
Choose if you want to do a Wild Card redirect. If you plan on redirecting all pages within example.com to example.net, then choose the option for a Wild Card Redirect. For example, selecting this option would redirect domain.com/page.html to NewDomain.com/page.html. Notice that everything after domain.com/ (in this example "page.html" ) was added after NewDomain.com/.
Once you are done, click on "Add":Congratulations, now you know how to create a domain redirect in cPanel!
|
n/a Points
|
2018-02-16 11:44 am
Hello,After folllow the all steps,My website is not working.Please help.
|
|
Staff 17,314 Points
|
2018-02-16 6:16 pm
Hello Kunal,
Sorry to hear that you're having issues with your website after following the steps for making domain redirects in the documentation above. However, in order for us to help you, we would need information about the problem. Can you please provide details to duplicate the issue you're facing? If you want to handle it privately, then please contact our live technical support team. Their contact information can be found at the bottom of the page. |
|
n/a Points
|
2018-08-27 12:28 am
Hello,
This article was beautifully done but I'm having trouble still. Basically, I have the inverse of this problem. I have a web-hosting service that uses cPanel and a domain at GoDaddy. How can I find the ip address in cPanel so I can put it in the forwarding request under GoDaddy? |
|
Staff 619 Points
|
2018-08-27 6:05 pm
The instructions may vary at a different host, however, we have a guide here that describes How to Find Your Shared IP Address in cPanel.
|
|
n/a Points
|
2019-08-01 8:28 pm
Hi still it cannot redirect my all pages .
I want to redirect test.subdomain.com to subdomain.com/test2 |
|
Staff 619 Points
|
2019-08-02 7:10 pm
If you plan on redirecting all pages within test.subdomain.com to subdomain.com/test2, then choose the option for a Wild Card Redirect. You also need to be sure that you specify /test2 in the URL for the "Redirects to" field
For example, selecting this option would redirect test.subdomain.com/page.html to subdomain.com/test2/page.html. |
Staff 36 Points
|
2020-01-07 7:58 pm
Changes should take effect immediately after you have made them.
|
|
n/a Points
|
2020-01-13 7:28 pm
Still having problems... how do i redirect a url e.g domain.com/test to another url of the same domain? |
|
Staff 17,314 Points
|
2020-01-16 1:36 am
Jane,
Your issue sounds a little odd. You should be able to simply redirect the page to another URL in the same domain. If you're unable to do that, then please give us more information on how you're doing that. You can also contact our live technical support team (contact at the bottom of the page). They will be able to assist you immediately. |
| Ticket: | Submit a Support Ticket |
|---|---|
| Chat: | Click To Chat Now |
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!