cPanel & Hosting How-Tos How to Set Up a Redirect in cPanel
A redirect sends visitors (and search engines) from one URL to another. You’ll need them when you rename a page, move to a new domain, or tidy up old links. cPanel makes basic redirects easy, and .htaccess handles the trickier ones.
301 vs 302: choose the right type
- 301 (permanent) — the page has moved for good. Passes almost all of the old page’s ranking to the new URL. Use this for permanent moves.
- 302 (temporary) — the move is temporary (a short promo, maintenance). Search engines keep indexing the old URL.
For most situations — a renamed page, a new domain, consolidating URLs — you want a 301.
Create a redirect in cPanel
- In cPanel, open Redirects (under Domains).
- Choose the type: Permanent (301) or Temporary (302).
- Pick the domain and type the path you’re redirecting (e.g.
/old-page). - Enter the destination URL it should go to.
- Choose the www option and whether to use a wildcard redirect (to map a whole folder).
- Click Add.
Redirect a whole domain
Rebranding or moving everything to a new domain?
- In Redirects, select the old domain.
- Set the destination to the new domain.
- Choose 301 Permanent and apply to all (with and without www).
Every page of the old domain now forwards to the new one, carrying your SEO value across.
.htaccess for finer control
For rules cPanel’s tool doesn’t cover, edit .htaccess in your site root. For example, redirect a single old page:
Redirect 301 /old-page.html https://yourdomain.com/new-page
Or send everything to HTTPS (see force HTTPS). Back up .htaccess before editing it.
Avoid these mistakes
- Redirect chains — A → B → C is slow; point A straight to C.
- Loops — a page redirecting to itself. Double-check your rules.
- Using 302 for a permanent move — you’ll lose ranking value; use 301.
After a big move
- Update internal links to point directly to the new URLs.
- Submit the change and your sitemap in Google Search Console.
- Keep the redirects in place long-term so old links never break.
Move with confidence
Redirects are included on every Web Hosting and WordPress Hosting plan, and our support team can help you plan a clean 301 map when you move domains — so you keep your traffic and rankings. If you’re migrating to us, see how to migrate your website to Genhost.
Frequently asked questions
What is the difference between a 301 and a 302 redirect?
A 301 is permanent and tells search engines the page has moved for good, passing its ranking to the new URL. A 302 is temporary. Use a 301 for permanent moves, like a new domain or a renamed page, so you keep your SEO value.
Will a redirect hurt my SEO?
A correct 301 redirect preserves almost all of a page's ranking value and is the recommended way to move content. Problems only arise from redirect chains, loops, or using a temporary 302 for a permanent move.
Can I redirect a whole domain to another?
Yes. In cPanel's Redirects tool, choose the domain and redirect it to the new one with 'Redirect with or without www'. This sends every page of the old domain to the new one, ideal when you rebrand.