301 and 302 Redirects in cPanel: step-by-step guide. Redirects are instructions through which visitors and search engines are automatically directed from one URL address to another.
They are useful for maintaining SEO value, for website restructuring, or for managing deleted pages.
301 and 302 Redirects in cPanel
- 301 Permanent Redirect: permanent redirect, transfers SEO authority to the new URL.
- 302 Temporary Redirect: temporary redirect, does not transfer SEO authority.
Accessing the Redirects section in cPanel
To configure a redirect, follow these steps:
- Log into cPanel
- Navigate to the DOMAINS section
- Click on Redirects
Configuring a 301 redirect
- At Type, select Permanent (301)
- Select the desired domain from the available list
- Enter the old URL path (ex:
/old-page) - Enter the complete destination address (ex:
https://www.your-domain.com/new-page) - Optionally check the “Only redirect with www” or “Do Not Redirect www” option
- Press Add to complete the configuration
Configuring a 302 redirect
The steps are identical to those for the 301 redirect, but at Type select Temporary (302).
This option is recommended when you want the redirect to be valid only for a short period of time.
Redirecting the entire domain
To redirect all pages from one domain to another domain:
- Select the source domain
- Leave the “/” field empty to redirect all content
- Enter the complete new domain (ex:
https://www.new-domain.com) - Check the Wildcard Redirect option if you want subpages to be preserved (ex:
/blog→/blogon the new domain)
Managing existing redirects
After you have added one or more redirects, they will appear listed under the form.
From here you can:
- Check them
- Edit them (delete and recreate)
- Delete them permanently
Advanced redirects with the .htaccess file
Advanced users can directly edit the .htaccess file from public_html for complex redirects:
Redirect 301 /old-page https://www.your-domain.com/new-pageModifications must be made carefully, as errors can lead to website inaccessibility.
SEO recommendations for redirects
- Use 301 for permanent changes to transfer SEO authority
- Avoid redirect chains (ex: A → B → C)
- Redirect deleted pages to relevant pages, not just to the homepage
- Update the sitemap and submit it to Google Search Console after changes
301 and 302 redirects are essential tools in the efficient administration of a website.
cPanel offers a simple and intuitive interface to manage these redirects without writing code.
Used correctly, they can improve user experience, prevent 404 errors, and maintain the SEO authority of important pages.

Comments (0)