How to redirect a page or a domain in cPanel (301 redirect)
A redirect sends visitors (and Google) from one address to another automatically. You need it when you change a page link, move to a new domain, or want a short link to a long page. A 301 (permanent) redirect keeps your SEO ranking. This guide shows you how to redirect a page or a domain in cPanel.
1) Open Redirects
In cPanel, go to the Domains section and click Redirects (1).
2) Add the redirect
- Type (1): Permanent (301) for a permanent change (best for SEO) or Temporary (302) for a short time.
- Domain (2): choose the domain. "All Public Domains" applies to all of them.
- Path (3): the old page after the slash, for example
old-page. Leave it empty to redirect the whole domain. - Redirects to (4): the full new address, for example
https://yourdomain.com/new-page. - www. redirection (5): usually Redirect with or without www.
- Wild Card Redirect (6): tick it when you move a whole domain, so
old.com/any-pagegoes tonew.com/any-page. - Click Add (7).
Test it by opening the old address in a private browser window.
When to use each type
| Situation | Type |
|---|---|
| You changed a page URL forever | 301 |
| You moved to a new domain | 301 + Wild Card |
| A page is under maintenance for a few days | 302 |
Common problems
- "Too many redirects" → two rules point to each other, or a redirect conflicts with the HTTPS/www rules. Delete the redirect and check HTTPS and www redirects.
- WordPress pages → for many WordPress pages a redirect plugin is easier to manage.
- The old address still opens → your browser cached it. Test in a private window.
Frequently asked questions
Where are the redirects saved?
In the .htaccess file of the domain. Removing the redirect from cPanel removes the rule.
Does a 301 redirect lose my Google ranking?
No, it passes the ranking to the new address. That is why it is the right choice for permanent changes.
Can I redirect to another website?
Yes, write any full address in "Redirects to".

