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
- Select the domain you want to redirect.
- Enter the destination (target) URL.
- Choose redirect type (Permanent 301 or Temporary 302).
- 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