Domain Management
How to Set Up a Domain Redirect in cPanel
Redirect one domain or URL to another using cPanel's built-in redirect manager — useful for rebranding or URL changes.
4 min read
Updated 12 August 2026
Setting Up Domain Redirects
Redirects send visitors from one URL to another automatically. Common uses include redirecting www to non-www, redirecting old pages to new ones, or redirecting a second domain to your main site.
Types of Redirects
| Type | Code | Use Case |
|---|---|---|
| Permanent | 301 | Page moved permanently — passes SEO value |
| Temporary | 302 | Page temporarily moved — no SEO transfer |
Always use 301 for permanent changes (rebranding, URL restructuring).
Step 1 — Open Redirects in cPanel
- Log into cPanel
- Go to Domains → Redirects
Step 2 — Create a Redirect
- Type: Select 301 (Permanent) or 302 (Temporary)
- https?://www.? — Select the domain from the dropdown
- Redirects to: Enter the destination URL (e.g.,
https://newdomain.co.ke) - www. Redirection: Choose:
- Only redirect with www
- Only redirect without www
- Check Wild Card Redirect to redirect all pages under the domain
- Click Add
Common Redirect Scenarios
Redirect second domain to main domain:- From:
oldbrand.co.ke - To:
newbrand.co.ke
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Redirect old page to new page:
- From:
yourdomain.co.ke/old-page - To:
yourdomain.co.ke/new-page
Verifying Your Redirect
Use redirect-checker.org to confirm your redirect is working and returning the correct status code.
Tags:redirect301 redirectdomaincPanel
Still need help?
Our Kenyan support team is on WhatsApp — real people, not bots. We respond in under 15 minutes.