Braysons Host logo
Order NowGet Started Free
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

TypeCodeUse Case
Permanent301Page moved permanently — passes SEO value
Temporary302Page temporarily moved — no SEO transfer

Always use 301 for permanent changes (rebranding, URL restructuring).

Step 1 — Open Redirects in cPanel

  1. Log into cPanel
  2. Go to Domains → Redirects

Step 2 — Create a Redirect

  1. Type: Select 301 (Permanent) or 302 (Temporary)
  2. https?://www.? — Select the domain from the dropdown
  3. Redirects to: Enter the destination URL (e.g., https://newdomain.co.ke)
  4. www. Redirection: Choose:
- Redirect with or without www (recommended)

- Only redirect with www

- Only redirect without www

  1. Check Wild Card Redirect to redirect all pages under the domain
  2. Click Add

Common Redirect Scenarios

Redirect second domain to main domain:
  • From: oldbrand.co.ke
  • To: newbrand.co.ke

Redirect HTTP to HTTPS (use .htaccess instead):
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.

WhatsApp Us
Braysons Host — Kenyan Hosting with WhatsApp Support