How to Redirect a Domain or Page Using cPanel: A Simple Guide to 301 and 302 Redirects

Redirecting domains or web pages is a common task for webmasters—whether you’re moving to a new domain, restructuring your site, or temporarily redirecting traffic during maintenance. If you’re using cPanel, this process is simple and doesn’t require coding knowledge.

In this blog, we’ll walk you through how to set up 301 (permanent) and 302 (temporary) redirects directly from cPanel.

What Is a Redirect?

A redirect tells browsers and search engines that a page has moved. There are two primary types:

  • 301 Redirect – Permanent. Tells browsers and search engines the page has moved for good.

  • 302 Redirect – Temporary. Used when the change is not permanent (e.g., during site maintenance or A/B testing).

 

Why Use Redirects?

  • SEO preservation (301 keeps search rankings intact)

  • Smooth user experience

  • Avoid broken links or 404 errors

  • Consolidate multiple domains

  • Change site structure without losing visitors

 

How to Set Up Redirects Using cPanel

Follow these steps to create a redirect through your cPanel interface.

Step 1: Log in to cPanel

Access your cPanel account. This is usually at:

yourdomain.com/cpanel

Enter your username and password.

Step 2: Locate the “Redirects” Tool

  • Scroll down to the Domains section.

  • Click on Redirects.

 

Step 3: Choose Redirect Type

At the top, choose the type of redirect:

  • Permanent (301): Recommended for SEO and long-term changes.

  • Temporary (302): Used if the change is only for a short time.

 

Step 4: Select the Domain

From the drop-down list, choose the domain you want to redirect. If you want to redirect a specific page, add the path in the adjacent field.

Example:

  • Domain: yourdomain.com

  • Page: old-page → Resulting in yourdomain.com/old-page

 

Step 5: Enter the Destination URL

In the “Redirects to” field, enter the full URL you want visitors to be sent to.

Example:

https://newdomain.com/new-page

Step 6: Choose “www.” and Wildcard Options (Optional)

  • www. Redirection: Choose whether to apply the redirect to www, non-www, or both.

  • Wildcard Redirect: Redirects all files within a directory to the same filename at the new location. Useful when redirecting a whole directory structure.

Example: yourdomain.com/blog/post1newdomain.com/blog/post1

Step 7: Click “Add”

Click Add to create the redirect.

How to Test If It Worked

  • Open your browser.

  • Visit the original URL (e.g., yourdomain.com/old-page).

  • It should automatically redirect to the new destination.

You can also use tools like:

 

How to Remove a Redirect

If you want to remove the redirect later:

  • Go back to the Redirects section in cPanel.

  • Scroll down to Current Redirects.

  • Click Delete next to the redirect you want to remove.

 

Final Thoughts

Redirects are essential for maintaining SEO, improving user experience, and keeping your site organized. With cPanel, you can set them up in minutes without touching code. Whether you’re rebranding, restructuring, or just fixing old links, understanding how to properly use 301 and 302 redirects will keep your website traffic flowing smoothly.