What is Domain Redirection?
Similar to a pointer from one domain to another, a redirection. The URL of the browser is automatically changed to the redirect or destination domain when browsing a website with the redirected domain.
This guide explains how a domain or subdomain redirection works at cPanel.
How to Setup Domain Redirects in cPanel
- Firstly, login to cPanel.
- Next, select Redirects icon under Domain section.
- Then, select your preferred redirection (Permanent or Temporary) in the drop down menu under Type section.
- Select the domain or enter the URL that you want to redirect.
- Enter the file name (such as info.html) in the blank “/” field if you want to redirect the specific file.
- Enter the domain or destination URL that you want the traffic redirected to in the Redirects to box.
- Lastly, you can choose how you want to handle ‘www’ redirects for the “www. redirection” section. You can only apply the redirect when www is included (or when it is not), or you can apply the redirect no matter www is included or not.
The Wild Card redirect enables you to all pages within example.com to example.net. For instance, info.com/page.html will be redirected to Newinfo.com/page.html. - Next, click on Add when you’re finished.
- That’s it! The redirect has been successfully created.