Home domains Domains: how to create a sitedomain redirect in cpanel

Domains: how to create a sitedomain redirect in cpanel

Last updated on Aug 05, 2025

How to Create a Domain Redirect in cPanel

Redirecting a domain in cPanel allows you to transfer traffic from one URL to another, which is useful for website migration or consolidating domains. Below is a step-by-step guide to setting up a domain redirect using cPanel.

Step 1: Access cPanel

  • Log in to your hosting account and navigate to the cPanel interface.

Step 2: Navigate to Redirects

  • In cPanel, locate the "Domain" section and click on "Redirects."

Step 3: Choose Redirect Type

  • 301 Permanent Redirect: Ideal for permanent URL changes. This type is favored for SEO as it preserves link equity.
  • 302 Temporary Redirect: Suitable for temporary URL changes, though not recommended for long-term use.

Note: For most cases, a 301 redirect is recommended to maintain SEO benefits and user experience.

Step 4: Select the Domain

  • From the dropdown menu, choose the domain you wish to redirect.

Step 5: Enter Target URL

  • In the "Redirects to" field, enter the full URL of your target page, including the protocol (http:// or https://).

Step 6: www. Prefix Option

  • Redirect with www.: The redirect will only work if users include "www." in their URL.
  • Redirect with or without www.: The redirect works regardless of whether "www." is used.
  • Do not Redirect www.: Disables the redirect for URLs containing "www."

Step 7: Wild Card Redirect (Optional)

  • Enable this option to redirect all files in the current directory to the same filenames in the target directory. For example, if example.com redirects to example-test.com with Wild Card enabled, both example.com/test/ and example.com/image.jpg will redirect accordingly.

Step 8: Create Redirect

  • Click the "Add" button to save your settings and complete the redirect setup.

Conclusion

By following these steps, you can efficiently set up a domain redirect in cPanel. If you encounter any issues or need further assistance, feel free to reach out to our support team for help.