How to Redirect a Domain to Another Domain from cPanel

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.

How to Redirect a Domain to Another Domain from cPanel

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.com to newdomain.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.

  1. 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.

Redirect a Domain to Another Domain from cPanel
  1. 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**.
  2. 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.com as the source, the destination field should be https://newdomain.com.

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-1 redirects only to newdomain.com. (The user lands on the homepage, losing the specific article).
  • Example with Wildcard: olddomain.com/blog/post-1 redirects cleanly to newdomain.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.

  1. 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).
  2. 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).
  3. 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.

Share your love
bytesvibe
bytesvibe

Bytes Vibe হলো ঢাকা, বাংলাদেশ ভিত্তিক একটি পূর্ণাঙ্গ ডিজিটাল সলিউশন এজেন্সি, যা আপনার ব্যবসাকে অনলাইন জগতে শুধুমাত্র প্রতিষ্ঠা নয়, বরং সাফল্যের চূড়ায় নিয়ে যেতে বদ্ধপরিকর। আমরা ওয়েবসাইট ডিজাইন ও ডেভেলপমেন্ট থেকে শুরু করে ডিজিটাল মার্কেটিং এবং অত্যাধুনিক সফটওয়্যার লাইসেন্সিং পর্যন্ত সব ধরনের পরিষেবা প্রদান করি। আমাদের মূল লক্ষ্য হলো - প্রতিটি ক্লায়েন্টের ধারণা ও স্বপ্নকে আধুনিক প্রযুক্তির মাধ্যমে বাস্তবে রূপ দেওয়া।