Skip to main content
The Redirects tool writes URL-level redirect rules into your .htaccess for you. You pick the source, the target, and the type, and cPanel handles the rest. Open it from cPanel home → DomainsRedirects.
Redirects page showing the create form and the list of active redirects

301 vs 302

TypeCodeWhen to use
Permanent301The page has moved for good. Browsers and search engines remember the new URL.
Temporary302Short-term redirect. Browsers re-check the original URL on every visit.
Pick 301 for almost everything: domain migrations, restructured site sections, retired pages. Use 302 for genuinely temporary redirects (an event landing page that should expire, an A/B test).

Create a redirect

1

Pick the type

Choose Permanent (301) or Temporary (302) from the dropdown.
2

Choose the source domain

The https?://(www.)? dropdown lets you pick a single domain or apply the rule to all domains on the account.
3

Type the source path

Leave blank to redirect the whole domain. Type /old-page to redirect a single URL. Trailing slash matters: /blog and /blog/ are different paths.
4

Type the destination URL

Full URL, including https://. cPanel sends the visitor here.
5

Pick a www handling

  • Only redirect with www. The rule fires only when the visitor types www.yourdomain.com.
  • Redirect with or without www. The rule fires either way. Pick this for most cases.
  • Do Not Redirect www. The rule fires only on the bare hostname.
6

Decide on Wild Card Redirect

Tick this if the source path should be appended to the destination URL.With Wild Card on, mybrand.com/blog/post-1 redirects to newbrand.com/blog/post-1. With it off, every URL goes to newbrand.com regardless of path.
7

Click Add

The rule is live immediately. Test it in a browser, ideally in a private window so cached redirects don’t fool you.

Common patterns

Redirect www to root (or vice versa)

Pick one canonical version and stick with it. Search engines treat www.mybrand.com and mybrand.com as separate sites otherwise.
  • Source: leave path blank, source domain mybrand.com, www handling Only redirect with www.
  • Destination: https://mybrand.com/.
  • Type: 301.
  • Wild Card: on.

Force HTTPS

The cleaner way is the Force HTTPS Redirect toggle in the Domains tool. If you want a manual .htaccess rule instead, use Redirects with http:// source and https:// destination.

Migrate a domain

Old domain oldbrand.com, new domain newbrand.com, want every page to follow.
  • Type: 301.
  • Source domain: oldbrand.com.
  • Path: blank.
  • Destination: https://newbrand.com/.
  • www handling: Redirect with or without www.
  • Wild Card: on.
Visitors hitting oldbrand.com/about land on newbrand.com/about. Search engine link equity carries over.

Retire a single page

  • Type: 301.
  • Source domain: mybrand.com.
  • Path: /old-product.
  • Destination: https://mybrand.com/products.
  • Wild Card: off.

Remove or edit a redirect

The Redirects tool doesn’t have an edit button. To change a rule, Remove the existing one and create a new one. Same applies if you typed the destination wrong. If a redirect won’t go away, your .htaccess is the source of truth. Open File Manager, enable Show Hidden Files, and delete the rule directly from public_html/.htaccess.

Common issues

Usually a www redirect fighting an HTTPS redirect. Pick one canonical URL (root or www, http or https) and make every other variant land on it in a single hop.
Wild Card needs to be on for the source path to carry over. Off, every visit lands on the destination root.
301 redirects are cached aggressively by browsers. Test in a private window or a different browser, or clear your local cache.

Need a hand?