How Can We Help?
How to create domain redirection from cpanel
Domain redirection on cPanel is a simple process that forwards visitors from one URL to another. This is useful for various reasons, like pointing an old domain to a new one or redirecting a non-www version of your site to the www version.
Step 1: Access the Redirects Tool
- Log in to your cPanel account.
- In the main dashboard, find the Domains section.
- Click on Redirects.
Step 2: Configure the Redirection
On the “Redirects” page, you’ll find a form to set up your redirection rule.
- Type: Choose the type of redirection you want.
- Permanent (301): This is the most common choice. It tells search engines and browsers that the page has moved permanently. This is the best option for SEO, as it passes on the link authority of the old URL to the new one.
- Temporary (302): This indicates that the page has moved temporarily. Search engines will not pass on the link authority in this case.
- Domain: From the dropdown menu, select the domain you want to redirect.
- Redirects to: In this field, enter the full URL of the destination where you want visitors to be sent. For example,
https://www.newdomain.com
. - www. Redirection: You have three options here:
- Only redirect with www.: Redirects
www.yourdomain.com
but leavesyourdomain.com
alone. - Redirect with or without www.: Redirects both
www.yourdomain.com
andyourdomain.com
. This is the most common and recommended option for general domain forwarding. - Do Not Redirect www.: Leaves
www.yourdomain.com
alone.
- Only redirect with www.: Redirects
- Wildcard Redirect: Check this box if you want to redirect all files within the old domain to the corresponding files on the new domain. For example, if you check this,
olddomain.com/blog/post1
will redirect tonewdomain.com/blog/post1
. This is a very powerful feature for migrating entire websites.
Step 3: Add the Redirection
After filling out the form, click the Add button. cPanel will create the redirection rule, and it will take effect almost immediately. The new redirection will be listed in the table at the bottom of the page, where you can also test or remove it if needed.