Skip to main content

How do I create a redirect? (301/302-Redirect)

This article explains how to create a redirect in cPanel. You log in, choose a redirect type (301 or 302), enter your domain and destination, set www/wildcard options, and save

Updated over 2 weeks ago

🔀 How to Create a Redirect in cPanel

A redirect lets you send visitors from one page or domain to another. This is useful if you’ve changed your domain name or want to forward an old page to a new one.

📝 Step-by-Step

1. Log in to cPanel

2. Open Redirects

  • In cPanel, scroll down to the “Domains” section.

  • Click “Redirects”.

3. Choose Redirect Type

From the dropdown menu, select the type of redirect you want to use:

  • 301 Permanent Redirect

    • Recommended if the page/domain has permanently moved.

    • Updates visitor bookmarks and search engines.

  • 302 Temporary Redirect

    • Used for temporary redirections.

    • Search engines continue indexing the original page.

4. Enter Domain and Destination

  • From the list “http://(www.)”, choose the domain you want to redirect.

  • To redirect a specific page or folder, enter it in the field next to it.

  • In the “Redirects to” field, type the full web address of the target destination (e.g., https://www.newdomain.com).

⚠️ Always include the protocol (http:// or https://).

5. Choose www Settings

  • Redirect only with www – only addresses with www will redirect.

  • Redirect with or without www – all addresses redirect, regardless of www.

  • Do not redirect www – the www version will not redirect.

6. Wildcard Redirect (Optional)

  • Enable Wildcard Redirect if you want all subpages to point to their equivalent on the new domain.

    • Example: www.example.com/aboutwww.newdomain.com/about

  • Without wildcard, all visitors are redirected only to the new domain’s homepage.

7. Save

  • Click “Add” to create the redirect.

✅ Done!

When someone visits the original address, they will automatically be redirected to your new destination.

Did this answer your question?