HostingControl panelSpanish version

Support article

How Do I Create a Domain Redirect Using cPanel?

Learn how to redirect a domain from cPanel with a 301 (permanent) or 302 (temporary) redirect in a few steps, from the Redirects section.

Published: 30/06/2026Updated: 07/07/2026

Introduction

A redirect lets two or more domains share the same hosting account and display the same content, or sends visitors from an old domain to a new one. It’s the ideal option when you want the same site accessible from different addresses, or when you’re switching domains and want to preserve your SEO rankings.

Types of redirects

301 permanent redirect

Tells browsers and search engines the address has changed for good. This is the recommended option if you’ve switched domains or want to consolidate SEO on a new URL.

302 temporary redirect

Indicates the change is temporary. It’s useful for testing, campaigns, or maintenance windows where you don’t want to signal a permanent change to search engines.

Steps to create a redirect in cPanel

  1. Log in to cPanel.
  2. Go to the Domains section.
  3. Click Redirects.
  4. Choose the redirect type: Permanent (301) or Temporary (302).
  5. Select the domain you want to redirect. If you want to redirect a specific path, enter it in the corresponding field, e.g. products.
  6. In Redirects to, enter the full destination URL, including https://.
  7. Set how you want to handle the www and non-www versions.
  8. Click Add.

Practical example

If you want mydomain.es to load the content of https://www.mydomain.com, create a redirect from mydomain.es to https://www.mydomain.com. If the change is permanent, use a 301 redirect.

Useful tips

  • Don’t forget to write the full destination URL, including https://.
  • Avoid creating redirect loops — don’t redirect domain1.com to domain2.com if domain2.com redirects back to domain1.com.
  • If you use WordPress, also check redirects configured in plugins or in the .htaccess file, since they can conflict with cPanel’s.

Common problems

The redirect isn’t working

Check that the domain points to the hosting, that the destination URL is written correctly, and that there are no conflicting rules in .htaccess.

I get a “too many redirects” error

There’s a redirect loop. Check cPanel, WordPress, plugins, or any external configuration that might also be redirecting the same domain.

I only want to redirect one page

You can enter the specific path in the redirect field, for example old-page, and send it to the new URL.

Frequently asked questions

Which redirect should I use for SEO?

Use 301 for permanent changes. Use 302 for temporary changes.

Can I redirect a domain with and without www?

Yes. cPanel lets you choose the behavior for www, without www, or both.

Does a redirect copy the content?

No. It only sends the visitor from one address to another; the content only exists at the destination.

Conclusion

To create a domain redirect in cPanel, open Redirects, choose 301 or 302, select the domain, and enter the full destination URL. Always check there are no duplicate or looping redirects before saving.