Back to knowledgebase

How to Create Redirects in cPanel

Redirects screen in cPanel

Add a Redirect

  1. Go to Domains > Redirects.
  2. Choose Permanent (301) or Temporary (302).
  3. Choose the domain.
  4. Enter the page or folder path if only part of the site should redirect.
  5. Enter the full destination URL in Redirects to.
  6. Choose how cPanel should handle www.
  7. Tick Wild Card Redirect only if every matching file should redirect to the same filename at the new location.
Redirect form with destination entered
  1. Click Add.

Test a Redirect

  1. Go to Domains > Redirects.
  2. Find the redirect in Current Redirects.
  3. Click the source URL.
  4. Check that the browser opens the correct destination.

Delete a Redirect

  1. Go to Domains > Redirects.
  2. Find the redirect in Current Redirects.
  3. Click Delete.
  4. Confirm the deletion.

Notes

  • cPanel redirects are added to the site’s .htaccess file.
  • You cannot edit an existing redirect. Delete it and create a new one.
  • Browser caching can make old redirects appear to keep working after deletion.