Adding Redirects in cPanel¶
Use this page when a site URL should send visitors to another URL. cPanel's
Redirects tool can redirect a full domain, a subdomain, or a specific path
without editing .htaccess manually.
Before Adding a Redirect¶
- Confirm the destination URL loads correctly.
- Decide whether the redirect should be permanent or temporary.
- Check for existing redirects in the application, CMS, CDN, or
.htaccess. - Avoid redirecting a URL back to itself or to another URL that redirects back.
Avoid redirect loops
If the browser reports too many redirects, remove the new redirect and check
for another redirect rule in WordPress, .htaccess, Cloudflare, or another
site tool.
Redirect Types¶
| Type | Use when |
|---|---|
301 Permanent |
The old URL should permanently move to the new URL. This is the usual choice for renamed pages, domain changes, and SEO-friendly moves. |
302 Temporary |
The move is short term, such as a temporary campaign page or maintenance workaround. |
Add a Redirect¶
- Log in to cPanel.
- Open
Redirects. - Choose
Permanent (301)orTemporary (302). - Select the domain or subdomain to redirect.
- Leave the path field blank to redirect the whole domain, or enter a path such
as
old-pageto redirect onlyexample.com/old-page. - Enter the full destination URL, including
https://. - Choose the
wwwbehavior that matches the domain: Only redirect with www.redirectswww.example.com.Redirect with or without www.redirects bothexample.comandwww.example.com.Do Not Redirect www.redirects only the non-www version.- Use
Wild Card Redirectonly when every path under the old URL should map to the same path at the new destination. - Select
Add. - Test the old URL in a private browser window.
Redirect a Single Page¶
For a single page, select the domain and enter only the path in the redirect field. Do not include the domain name in that field.
Example:
| Field | Value |
|---|---|
| Domain | example.com |
| Path | old-page |
| Redirects to | https://example.com/new-page |
This redirects https://example.com/old-page to
https://example.com/new-page.
Redirect a Whole Domain¶
To redirect one domain to another, select the old domain, leave the path field blank, and enter the new domain as the destination.
Use Wild Card Redirect only if paths should be preserved. For example, a
wildcard redirect can send old-example.com/page to new-example.com/page.
Remove a Redirect¶
- Open
Redirectsin cPanel. - Scroll to
Current Redirects. - Find the redirect.
- Select
DeleteorRemove. - Test the old URL again.
Related Guides¶
-
Add a domain
-
Force HTTPS
-
Common website errors