Articles on: cPanel Tutorial

How to Set Up Domain Redirection in cPanel

A domain redirection occurs when a web server redirects a visitor from one website to another website. An example is when we use www.domain1.com which redirects to another domain called www.domain2.com

Here's how we can setup a domain redirection in cPanel:

Login to cPanel and click on Redirects


Under Add Redirect, select the redirection type:
To specify a permanent redirection, select Permanent (301).
To specify a temporary redirection, select Temporary (302).

In this example, I'm going to select the Permanent (301) option



Click the next drop-down box and choose the domain you want to redirect.


For the slash '/' field, enter any folder names (if necessary).


Enter the web address you want to redirect to in the Redirects to section.


Choose if you want to "Only redirect with www." "Redirect with or without www." or "Do Not Redirect www.". In this example, I'm going to choose " Redirect with or without www ".


Check the box if you want to create a Wild Card Redirect. This will add the the file/folder name after the url when it redirects. For instance, example.com/test.php would redirect to example2.com/test.php.

In this example, I'm NOT going to check the box for Wild Card Redirect. Click Add to finish the domain redirection setup.




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

Updated on: 27/12/2018

Was this article helpful?

Share your feedback

Cancel

Thank you!