.htaccess for you. You pick the source, the target, and the type, and cPanel handles the rest.
Open it from cPanel home → Domains → Redirects.


Redirects tool with the create form and existing rules below
301 vs 302
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
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 treatwww.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 domainoldbrand.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.
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
Redirect loop in the browser
Redirect loop in the browser
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.
Redirect ignores the path I typed
Redirect ignores the path I typed
Wild Card needs to be on for the source path to carry over. Off, every visit lands on the destination root.
Cached redirect won't update
Cached redirect won't update
301 redirects are cached aggressively by browsers. Test in a private window or a different browser, or clear your local cache.
Redirect breaks WordPress permalinks or other dynamic apps
Redirect breaks WordPress permalinks or other dynamic apps
cPanel writes redirect rules at the top of
.htaccess, before the # BEGIN WordPress block. If a redirect targets a path that’s also a WordPress route, the redirect wins. Either reorder rules manually in File Manager or scope the redirect more narrowly.Need a hand?
Open a ticket
Best for anything that needs an account check or a config change on our end.
Live chat
Faster for quick questions during business hours.

