Use a redirect when a page has moved, when you want an extra domain or subdomain to send visitors to your main site, or when a domain should point to an external website. cPanel's Redirects tool lets you set this up without editing any files.
Add a redirect
- Log in to cPanel and go to Domains › Redirects.
- Choose the Type:
- Permanent (301) for a lasting move. Search engines transfer the old address's ranking to the new one. Use this in most cases.
- Temporary (302) for short-term changes, such as a maintenance page or a seasonal promotion.
- In the https?://(www.)? drop-down, choose the domain or subdomain to redirect from, or ** All Public Domains **.
- In the box after the slash, enter the page or folder to redirect, for example
old-page.html. Leave it empty to redirect the whole domain. - In Redirects to, enter the full destination address, for example
https://example.co.uk/new-page/. - Choose a www. redirection option: Only redirect with www., Redirect with or without www. (usually the right choice) or Do Not Redirect www..
- Tick Wild Card Redirect if you want paths kept. With it,
example.com/aboutgoes toexample.co.uk/aboutrather than to the homepage. It only makes sense when you redirect a whole domain. - Click Add.
Redirecting a subdomain or an addon domain works the same way: pick it in the drop-down in step 3.
Remove a redirect
- Go to Domains › Redirects.
- Under Current Redirects, find the redirect and click Delete next to it, then confirm.
Good to know
- Browsers cache 301 redirects hard. If you're testing, start with a 302 and switch to 301 once you're happy, and use a private window to check.
- Don't redirect a domain to itself (for example
example.co.uktohttps://example.co.uk) here, because it causes a redirect loop. To send all visitors to HTTPS, see how to force HTTPS. - cPanel saves redirects as rules in your
.htaccessfile. For anything more complex, such as pattern matching or friendly URLs, see using .htaccess for redirects.