Create a redirect
Open the Redirects page
Log in to cPanel through your client area or at
yourdomain.com/cpanel. Go to Domains and click Redirects.Choose the redirect type
Select a type from the Type menu:
- Permanent (301) tells browsers and search engines that the page has moved permanently. Search engines update their index to the new URL.
- Temporary (302) tells browsers and search engines the move is temporary. Search engines keep the original URL in their index.
Select the domain
Choose the domain from the dropdown, or select All Public Domains to redirect every domain on your account.
Set the source path
In the
/ text box, enter the path you want to redirect from. Leave it empty to redirect the entire domain. For example, enter old-page to redirect yourdomain.com/old-page.Set the destination URL
In the Redirects to field, enter the full destination URL including the protocol, for example
https://example.com/new-page.Wildcard redirects
Enable the Wild Card Redirect option when you want all pages within a directory to redirect to the same path on the destination domain. For example, ifolddomain.com redirects to newdomain.com with a wildcard, then olddomain.com/about redirects to newdomain.com/about, olddomain.com/contact redirects to newdomain.com/contact, and so on.
This is useful when migrating an entire site to a new domain while preserving the URL structure.
Edit or delete a redirect
You cannot edit an existing redirect. To change one, delete it from the Current Redirects table and create a new redirect with the updated settings. To delete a redirect, click Delete next to it and confirm with Yes.Browsers cache redirects. After deleting a redirect, visitors may need to clear their browser cache before the change takes effect.
Redirects and WordPress
When you add a redirect through cPanel, it writes rules to the bottom of the.htaccess file. WordPress and some other applications manage their own rewrite rules in .htaccess and may ignore rules added below their block.
If a redirect isn’t working on a WordPress site, you have two options:
- Use a WordPress redirect plugin instead of cPanel’s redirect tool.
- Manually add the redirect rule inside the WordPress section of your
.htaccessfile using File Manager or FTP.