# How to redirect a domain or page in cPanel

> Redirect a page or a whole domain in cPanel with a 301, keep every path, choose the www option, and fix the redirects that do nothing on WordPress sites.

Source: https://www.fasterhost.in/kb/redirect-a-domain-in-cpanel.php · cPanel · 4 min read · updated 25 September 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.

## Steps

### 1. Open Redirects

In cPanel, go to **Domains → Redirects**.

### 2. 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. 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. 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. 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

**Should I use a 301 or a 302 redirect?**

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.

**How do I redirect a domain to another domain in cPanel?**

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.

**How do I edit a redirect in cPanel?**

You cannot change one in place. Delete it from the list on the Redirects page and add it again with the new values.

**How do I redirect HTTP to HTTPS in cPanel?**

Not on the Redirects page. Switch on Force HTTPS Redirect for the domain under Domains; it covers every page of the domain at once.

## Related

- [How to install a free SSL certificate](https://www.fasterhost.in/kb/install-a-free-ssl-certificate.php)
- [How to use the cPanel File Manager](https://www.fasterhost.in/kb/use-the-cpanel-file-manager.php)
- [cPanel Hosting](https://www.fasterhost.in/cpanel-hosting.php): cPanel on LiteSpeed and NVMe, served from India
- [Shared Hosting](https://www.fasterhost.in/shared-hosting.php): Fast, affordable hosting for your first site
