How to Set Up a Domain or URL Redirect in cPanel Print

  • website redirect
  • 2

A Redirect allows you to send visitors from one URL or domain to a completely different web address (e.g., automatically forwarding yourdomain.co.za to yourdomain.com, or routing an old page URL to a new one).

Types of Redirects

  • Permanent (301): Tells search engines and browsers that the page has moved permanently. Passes SEO ranking and link equity to the new URL.

  • Temporary (302): Signals that the redirect is short-term (e.g., during site maintenance). Search engines do not update their index to the new address.

Step-by-Step Instructions

  1. Log in to cPanel.

  2. Scroll to the Domains section and click Redirects.

  3. Under Type, choose either Permanent (301) or Temporary (302) from the dropdown menu.

  4. Select the domain you wish to redirect from the http://(www.) dropdown menu (choose All Public Domains or a specific domain).

  5. (Optional) In the / path field, enter a specific page or folder to redirect (e.g., old-page.html). Leave this blank if you want to redirect the entire website.

  6. In the Redirects to field, enter the full destination URL including http:// or https:// (e.g., [https://www.newdomain.com](https://www.newdomain.com)).

  7. Choose a www. redirection handling option:

    • Only redirect with www. — Only redirects visitors who type www. in the URL.

    • Redirect with or without www. — Redirects all visitors regardless of whether they type www. or not (Recommended).

    • Do Not Redirect www. — Excludes www. traffic from the redirect rule.

  8. (Optional) Check Wildcard Redirect if you want to route all subfolders/files to the identical path on the new target domain (e.g., [example.com/blog](https://example.com/blog)[newsite.com/blog](https://newsite.com/blog)).

  9. Click Add.

Note: cPanel creates these rules by adding entry lines to your website's .htaccess file.
If your site uses custom rewrite rules, test the redirect in an Incognito / Private window to ensure there are no redirect loops.


Was this answer helpful?

« Back