Setting up URL redirects

Files & Backups Updated Jan 18, 2026

URL Redirects Guide

Redirect visitors from one URL to another.

Method 1: cPanel Redirects

  1. Go to cPanel → Redirects
  2. Select redirect type (permanent or temporary)
  3. Enter the source URL
  4. Enter the destination URL
  5. Click Add

Redirect Types

Method 2: .htaccess Redirects

Single Page Redirect

Redirect 301 /old-page.html https://yourdomain.com/new-page.html

Entire Domain Redirect

RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$
RewriteRule (.*)$ https://newdomain.com/$1 [R=301,L]

www to non-www

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

HTTP to HTTPS

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Testing Redirects

Use httpstatus.io or redirect-checker.org to verify redirects work correctly.


Was this article helpful?