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


301 vs 302
| Type | Code | When to use |
|---|---|---|
| Permanent | 301 | The page has moved for good. Browsers and search engines remember the new URL. |
| Temporary | 302 | Short-term redirect. Browsers re-check the original URL on every visit. |
Create a redirect
Choose the source domain
The https?://(www.)? dropdown lets you pick a single domain or apply the rule to all domains on the account.
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.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.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.
