cPanel Redirects & URL Rewrites Print

  • 0

cPanel Redirects & URL Rewrites

Step-by-step guide to creating redirects and managing .htaccess rules.

Redirect Basics

  • In cPanel, go to Domains → Redirects.
  • Redirects automatically send users from one URL to another.
Tip: Never create circular redirects — they cause infinite redirect loops.

Create a Redirect

  1. Select the domain you want to redirect.
  2. Enter the destination (target) URL.
  3. Choose redirect type (Permanent 301 or Temporary 302).
  4. Click Add to save.

Edit .htaccess (Optional)

  • Redirects created in cPanel are stored in .htaccess.
  • You can manually add advanced rules using File Manager.
  • Example: Redirect 301 /old-page.html https://example.com/new-page.html

Redirect Types

  • 301 Permanent Redirect: Used for permanent content moves. Search engines update their index.
  • 302 Temporary Redirect: Do not update search index; good for testing or temporary changes.

Testing Redirects

  • Visit the old URL and confirm it forwards correctly.
  • Clear browser cache if redirect doesn't appear immediately.
  • Use external tools (redirect checkers) to confirm correct status codes.

Checklist

- [ ] Open cPanel → Redirects
- [ ] Select domain to redirect
- [ ] Enter target URL
- [ ] Choose redirect type (301 or 302)
- [ ] Test redirect in browser
- [ ] Edit .htaccess for advanced rules if needed
© cPanel Redirects Guide

Was this answer helpful?

« Back