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.

Redirect Domain

  1. Log into your cPanel.
  2. Click the Redirects link in the Domains section.
  3. 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).
  4. In the next drop-down choose the domain you want to forward.
  5. If you want to redirect a specific file (such as info.html) enter it in the blank forward slash '/' field.
  6. In the Redirects to box enter the domain you want the traffic redirected to.
  7. 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.
  8. 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/.
  9. Once you are done, click on "Add":

Congratulations, now you know how to create a domain redirect in cPanel!

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
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.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Comments

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-03-14 1:40 pm
Thank you it helped me a lot
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.
n/a Points
2020-01-07 5:50 pm

How long it takes for changes to make effect

Staff
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.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}