How to redirect a domain in cPanel?

In this article, you will learn how to set up a redirect between two domains through cPanel. In fact, the reasons for the redirect can be completely different. Starting from the optimization of an existing site for search engine promotion and ending with the transfer of the site to a new domain.

 

1. Log into your cPanel. 
2. Click  on the Redirects option in the Domains section: 

 

 

3. Choose the type of redirect you would like to use for your domain: 

 

• Permanent (301): When setting up this redirect, the old domain will leave the search engines and the new domain will take its place in the results. It informs search engines that the page has been moved to a new address and the original page can be excluded from indexing.

Temporary (302):  This redirection is temporary and tells the search engine that the page is temporarily rescheduled and after some time will be available again at the old address. Such a redirect can be used when the original page of the site is under development and must be hidden from the eyes of visitors.

 

 

 

4. From a drop-down menu, choose the domain name you would like to redirect: 

 

 

If you want to redirect a single page or directory, you can use the text field following the drop-down menu and enter the name of the folder or file. 



5. Enter the full URL of the page your domain will be redirected to in the Redirects to the field. 


NOTE: You need to enter the protocol as well, e.g., http://, https:// 

 

 

6. Select if you want your domain to redirect with www. or not: 

 

  • Only redirect with www.: The redirect will work if only visitors are using www. as a part of the URL. 
  • Redirect with or without www.: The redirect will work regardless of using www. as a part of the URL or not.
  • Do Not Redirect www.: The redirect will not work if visitors are using www. as a part of the URL.

 

 

7. Check Wild Card Redirect if you would like all files in the current directory to be redirected to the same files names in the new directory. 

 



 

Click on the Add button in order to create the redirect.