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.com → https://example.com
Redirect old page to new page:
example.com/old-page → example.com/new-page
Steps to Create a Redirect in cPanel
- Log in to cPanel.
- Go to the Domains section.
- Click Redirects.
- Choose the redirect type.
Common types:
Permanent 301
Temporary 302
- Select the domain.
- Enter the path if needed.
- Enter the destination URL.
- Choose www redirection settings.
- 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:
