Free managed migration on every plan — we move your sites the same day. All systems operational +91 74091 34231

How-tocPanel

How to redirect a domain or page in cPanel

Reading time
4 min
Last updated
25 Sep 2026

A redirect sends visitors, and search engines, from an old address to a new one. Use it when a page moves, when you change domains, or when a second domain should land on your main site. With a permanent (301) redirect, search engines pass the old address's ranking to the new one.

  1. 01

    Open Redirects

    In cPanel, go to Domains → Redirects.

  2. 02

    Choose the type

    Pick Permanent (301) for a move you will not undo: a renamed page, a new domain, two sites merged into one. Use Temporary (302) only when the original address will come back, such as a page taken down during a sale.

  3. 03

    Choose what to redirect

    Select the domain from the list, or ** All Public Domains ** for every domain on the account. In the / box, type the rest of the old address, for example old-page.html. Leave the box empty to redirect the whole domain.

  4. 04

    Enter the destination and the options

    In Redirects to, type the full new address, including https://; cPanel requires the protocol. Under www. redirection, Redirect with or without www. suits almost every site.

    When you are moving a whole domain, tick Wild Card Redirect. It sends each page to the same path on the new domain, so old.in/about lands on new.in/about rather than on the home page.

  5. 05

    Add it and test it

    Click Add, then open the old address in a private browser window. To see exactly what the server answers, run:

    curl -I https://example.in/old-page.html

    You should see 301 and a Location header with the new address. A redirect cannot be edited in place: to change one, delete it from the list and add it again.

Redirects that do nothing on WordPress

cPanel writes redirect rules at the bottom of the site's .htaccess file, below WordPress's own rules. WordPress then catches the request first and shows its own page, often a 404, and the redirect never runs.

To fix it, open .htaccess in File Manager (switch on hidden files in Settings) and move the lines cPanel added, the ones naming your old address, above the line # BEGIN WordPress. Alternatively, manage redirects inside WordPress with a plugin such as Redirection, which is easier if you have many.

Moving a whole site to a new domain

  • Redirect every page to its equivalent with a wildcard 301, not everything to the home page.
  • Keep the old domain registered and redirecting for at least a year; Google's advice is to keep redirects as long as you can.
  • Tell Google with the Change of Address tool in Search Console, and update your own internal links to the new domain.
  • HTTP to HTTPS is a different job: switch on Force HTTPS Redirect for the domain under Domains.

Common questions

301 for anything permanent: a moved page, a new domain, a merged site. Search engines then index the new address in place of the old one. Use 302 only when the original address will come back.
In Domains → Redirects, choose Permanent (301), select the old domain, leave the path empty, enter the new domain with https://, choose Redirect with or without www. and tick Wild Card Redirect so each page goes to the same path on the new domain.
You cannot change one in place. Delete it from the list on the Redirects page and add it again with the new values.
Not on the Redirects page. Switch on Force HTTPS Redirect for the domain under Domains; it covers every page of the domain at once.

→Read next

→Hosting for this

Plans that fit what you just read.

Every plan includes free SSL, free managed migration and a GST invoice.

cPanel Hosting cPanel on LiteSpeed and NVMe, served from Indiafrom ₹49/mo
Shared Hosting Fast, affordable hosting for your first sitefrom ₹49/mo

→Get started

Hosting that does this for you.

Free managed migration, free SSL, and engineers who answer in under two minutes.

See pricing Talk to an engineer

Median support reply: 1m 48s