In the lifecycle of any successful online business, there often comes a time for change. Whether you are rebranding, consolidating multiple websites, or simply retiring an old domain name, ensuring that your visitors and, crucially, search engine bots are seamlessly guided to your new location is paramount. A failed redirection can lead to lost traffic, decreased search rankings, and a poor user experience.

Fortunately, managing these migrations is straightforward, and the most common method involves utilizing the built-in “Redirects” feature within cPanel. This tutorial provides a step-by-step guide on setting up a domain redirect, with a critical focus on choosing the correct redirect type to protect your search engine authority.
I. Understanding the Core SEO Difference: 301 vs. 302
Before clicking a single button, you must understand the distinction between the two main types of HTTP redirects, as this choice directly impacts your website’s performance in search results.
- 301 Permanent Redirect: This is the standard, essential choice for almost all domain migrations. A 301 tells search engines: “This content has permanently moved to a new address. Please update your records.” Crucially, Google will typically pass $90\%$ to $99\%$ of the original page’s link equity (or “SEO authority”) to the new destination. If you are permanently moving from
olddomain.comtonewdomain.com, this is the type you must use. - 302 Found/Temporary Redirect: This tells search engines: “The content is temporarily available at a different location.” A 302 signals to search engines that they should keep the original URL indexed and should not transfer the link equity. Using a 302 for a permanent move is a common and severe SEO mistake that can cripple your rankings.
If the move is indefinite, always select 301 Permanent.
II. Step-by-Step Guide: Setting Up the Redirect in cPanel
The “Redirects” tool in cPanel simplifies the process of creating the necessary server-side instructions to move traffic.
Step 1: Access Your cPanel Interface
Log in to your cPanel account. This is usually accessed via a URL like yourdomain.com/cpanel. Enter your username and password.
Step 2: Locate the Redirects Tool
Once logged in, navigate to the Domains section. Within this block, you will find the Redirects tool. Click on this icon to open the configuration menu.
Step 3: Configure the Redirect Type (Crucial Step)
At the top of the Redirects page, you will see a dropdown menu.
- Select the Type: Click the dropdown and ensure you select Permanent (301), based on the SEO guidance above. Avoid 302 unless you have a specific, short-term maintenance or testing reason.
Step 4: Define the Source and Destination Domains
This step identifies which URL is being moved and where the traffic should be sent.

- Choose the Domain to Redirect (Source): In the main dropdown menu (often titled “http://(www.)?”), select the domain you are moving from. If you are moving
olddomain.com, select that domain from the list. If you want to redirect all domains in your account, you can typically choose the option**All Public Domains**. - Define the Destination URL: In the text field next to the source selection, enter the complete, target URL. Always include the
https://protocol.- Example: If you selected
olddomain.comas the source, the destination field should behttps://newdomain.com.
- Example: If you selected
Step 5: Master the Wildcard Redirect (Advanced)
Below the domain fields, you will see a checkbox labeled Wild Card Redirect. This feature is essential for a clean site migration that preserves your deep links.
- What it does: If checked, it ensures that any path appended to the source URL is also appended to the destination URL.
- Example without Wildcard:
olddomain.com/blog/post-1redirects only tonewdomain.com. (The user lands on the homepage, losing the specific article). - Example with Wildcard:
olddomain.com/blog/post-1redirects cleanly tonewdomain.com/blog/post-1. (The user lands on the correct article).
Recommendation: For almost all full domain migrations, always check the Wild Card Redirect box to maintain the integrity of your page-level SEO.
Step 6: Final Review and Creation
Review all your settings:
- Type: 301 Permanent
- Source: The domain being moved
- Destination: The complete, secure URL (
https://) of the new domain - Wild Card: Checked (for full domain moves)
Click the Add button. cPanel will instantly create the necessary configuration file, and the redirect will become active immediately.
III. Post-Migration Verification and Troubleshooting
Once the redirect is live, verification is mandatory to confirm the 301 is correctly implemented.
- Test in Browser: Type a specific, deep URL from the old domain (e.g.,
olddomain.com/contact) into your browser. You should be automatically and instantly taken to the equivalent page on the new domain (newdomain.com/contact). - Verify Status Code: Use a free online HTTP Status Code Checker tool. Enter the old domain URL. The tool must report a $301$ Permanent status code, not a 302 or a 200 (OK).
- Update Canonical Tags: If you are consolidating two similar sites, ensure all content on the new site correctly uses canonical tags pointing to itself.
By following these professional steps and critically distinguishing between the 301 and 302 redirect types, you ensure a clean technical migration that protects the SEO equity you have worked hard to build.

