Key takeaways
- Use 301 for permanent redirects so search engines follow them.
- Keep paths when redirecting so deep links still work.
- Redirected domains still need SSL to avoid certificate warnings.
Redirecting a domain sends anyone who visits it to another address. It’s useful for typo domains, old brand names and country domains that should all lead to one site.
Use a 301 for permanent moves
A 301 tells browsers and search engines the move is permanent, so they update bookmarks and pass ranking signals to the new address. Use a 302 only for genuinely temporary redirects.
Option 1: cPanel Redirects
- Make sure the domain is added to your hosting account (as an addon or alias domain).
- Open Domains → Redirects.
- Choose Permanent (301), select the domain, and enter the destination URL.
- Choose Redirect with or without www, and enable Wild Card Redirect if you want
/any/pathto go to the same path on the new site.
Option 2: .htaccess
In the document root of the old domain:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?old-example\.com$ [NC]
RewriteRule ^(.*)$ https://new-example.com/$1 [R=301,L]
This keeps the path, so old-example.com/pricing goes to new-example.com/pricing.
Don’t forget HTTPS
A redirect from https://old-example.com only works if the old domain also has a valid SSL certificate — otherwise visitors see a certificate warning before the redirect happens. Keep AutoSSL covering redirected domains.
Check the result with a redirect checker: you want a single 301 hop to the final URL.