How to Redirect a Domain or Page in cPanel Print

  • 0

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

  1. Log in to cPanel and go to Domains › Redirects.
  2. 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.
  3. In the https?://(www.)? drop-down, choose the domain or subdomain to redirect from, or ** All Public Domains **.
  4. 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.
  5. In Redirects to, enter the full destination address, for example https://example.co.uk/new-page/.
  6. Choose a www. redirection option: Only redirect with www., Redirect with or without www. (usually the right choice) or Do Not Redirect www..
  7. Tick Wild Card Redirect if you want paths kept. With it, example.com/about goes to example.co.uk/about rather than to the homepage. It only makes sense when you redirect a whole domain.
  8. 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

  1. Go to Domains › Redirects.
  2. 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.uk to https://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 .htaccess file. For anything more complex, such as pattern matching or friendly URLs, see using .htaccess for redirects.

Was this answer helpful?

« Back