Knowledgebase

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).

Redirects in the Domains section

2) Add the redirect

  1. Type (1): Permanent (301) for a permanent change (best for SEO) or Temporary (302) for a short time.
  2. Domain (2): choose the domain. "All Public Domains" applies to all of them.
  3. Path (3): the old page after the slash, for example old-page. Leave it empty to redirect the whole domain.
  4. Redirects to (4): the full new address, for example https://yourdomain.com/new-page.
  5. www. redirection (5): usually Redirect with or without www.
  6. Wild Card Redirect (6): tick it when you move a whole domain, so old.com/any-page goes to new.com/any-page.
  7. Click Add (7).

Add Redirect: type, domain, path, destination, www, wildcard, Add

Test it by opening the old address in a private browser window.

When to use each type

SituationType
You changed a page URL forever301
You moved to a new domain301 + Wild Card
A page is under maintenance for a few days302

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".

Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.

  • redirect, 301, cPanel, SEO

Was this answer helpful?

0 Users Found This Useful