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.
-
01
Open Redirects
In cPanel, go to Domains → Redirects.
-
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.
-
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. -
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/aboutlands onnew.in/aboutrather than on the home page. -
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.htmlYou should see
301and aLocationheader 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
→Read next
→Hosting for this
Plans that fit what you just read.
Every plan includes free SSL, free managed migration and a GST invoice.
→Get started
Hosting that does this for you.
Free managed migration, free SSL, and engineers who answer in under two minutes.