How to Set Up a Redirect in cPanel

Quick Summary

A redirect sends visitors from one URL to another URL. You can use redirects to forward old pages, domains, or subdomains to a new location.

Common Redirect Examples

Redirect old domain to new domain:

olddomain.com → newdomain.com

Redirect non-www to www:

example.com → www.example.com

Redirect HTTP to HTTPS:

http://example.comhttps://example.com

Redirect old page to new page:

example.com/old-page → example.com/new-page

Steps to Create a Redirect in cPanel

  1. Log in to cPanel.
  2. Go to the Domains section.
  3. Click Redirects.
  4. Choose the redirect type.

Common types:

Permanent 301
Temporary 302

  1. Select the domain.
  2. Enter the path if needed.
  3. Enter the destination URL.
  4. Choose www redirection settings.
  5. Click Add.

301 vs 302 Redirect

Use 301 Permanent Redirect when the change is permanent.

Use 302 Temporary Redirect when the change is temporary.

Important

If you are redirecting to HTTPS, make sure SSL is installed first.

Common Problems

Problem: Redirect loop.
Solution: Check existing redirects, .htaccess rules, and Cloudflare settings.

Problem: Redirect not working.
Solution: Clear browser cache and check the URL.

Problem: Website redirects to the wrong page.
Solution: Review redirect settings and .htaccess rules.

Need Help?

Open a support ticket:

https://bill.cybrohost.com/submitticket.php

Was this answer helpful? 0 Users Found This Useful (0 Votes)