Domains and DNS

Redirects: redirect domains and pages from cPanel

Reviewed on 3 min read redirects cPanel

cPanel's Redirects option lets you create redirects, simple or complete, from a form. For example, sending yourdomain.com/tienda to yourdomain.com/shop, or all of yourdomain.com to newdomain.com.

Redirects option in cPanel

Create the redirect

Form to add a redirect in cPanel

  1. Type: choose Permanent (301) or Temporary (302).
    • 301 if the change is final, for example if you have moved the shop from /tienda to /shop. Search engines will update their results with the new address.
    • 302 if it is temporary, such as putting a section into maintenance. If you are testing, start with 302: browsers store 301s and they are hard to undo afterwards.
  2. Domain: choose the domain you want to redirect. All Public Domains applies it to every domain in the account.
  3. In the field next to it, type the path you are redirecting, for example tienda. Leave it empty to redirect the whole domain.
  4. Redirects to: type the full destination address, with https://. For example https://yourdomain.com/shop.
  5. www. redirection: choose whether it applies only to yourdomain.com, only to www.yourdomain.com or to both. Usually, Redirect with or without www.
  6. Wild Card Redirect: tick it if you want to keep the rest of the path (we explain it below).
  7. Click Add.

The redirect appears in the list below. To change it, delete it and create it again with the correct details.

Wild Card Redirect

Imagine you change yourdomain.com to newdomain.com. The pages are the same, only the domain changes, and creating the redirects one by one isn't feasible.

With Wild Card Redirect enabled, yourdomain.com/anything takes you to its equivalent newdomain.com/anything. Without it, every page ends up on the newdomain.com home page, which confuses visitors and loses search rankings.

Check that it works

In a private window, open the old address with and without www, and with http:// and https://, both the home page and an inner page. You should end up at the new address.

For the redirect from https:// to work, the source domain needs to have its SSL certificate on the hosting.

If you have an application such as WordPress, PrestaShop or similar and the redirect doesn't work, see why a redirect made from cPanel doesn't work.

You may also find useful

Something wrong or out of date? Tell us and we will review it.