Skip to main content

How to set up redirect (forwarding) in cPanel

Use redirect in cPanel to redirect visitors from one domain, website, or folder to another URL. This guide shows how to create, test, and manage redirects in cPanel.

Overview

A redirect (forwarding) automatically sends visitors from one URL to another.

Redirects are often used when you want to:

  • Move a website to a new domain

  • Change the URL structure of the site

  • Create short and simpler URLs

  • Send visitors to external services or payment solutions

  • Redirect old pages to new pages

When you finish this guide, you will know how to create and manage redirects in cPanel.


Important information

⚠️ Existing redirects cannot be edited.

If you want to change a redirect, you must first delete it and then create a new one.

⚠️ If you want to redirect traffic from HTTP to HTTPS, we recommend that you use the Force HTTPS Redirect feature under Domains instead of creating a manual redirect.

⚠️ Browsers often store redirects in the cache.

If a redirect does not seem to work after you have made changes, it may be necessary to clear your browser cache.


Prerequisites

Before you start, make sure you:

  • Have access to cPanel

  • Are logged into cPanel

  • Have an active domain in your hosting account

  • Know which URL is to be forwarded

  • Know which URL visitors should be sent to


Step 1: Log in to cPanel

If your hosting service supports direct login to cPanel, you can log in via the client area.

This is how you do it:

  • Find your hosting service under active products/services

  • Click on Log in on cPanel

  • You are now automatically logged into cPanel


Step 2: Open Redirects

Go to the Domains section and click on Redirects:


Step 3: Select the type of redirect

  1. Select the type of redirect you want to create.

You can choose from:

Permanent (301)

Use when a page or website has been permanently moved.

Pros:

  • Search engines update their indexes

  • SEO value is transferred to the new address

  • Recommended for permanent relocations

Temporary (302)

Use when the move is only temporary.

Examples:

  • Maintenance work

  • Temporary campaign sites

  • Testing of a new content

The SEO value is not normally transmitted by a 302 forward broadcast.

2. Select the domain to be redirected from the drop-down menu

You can also choose:

** All Public Domains **

This option redirects all public domains associated with the account.

⚠️ If you choose All Public Domains, some www settings become unavailable.

3. Specify the URL to be redirected

If you want to redirect a specific page or folder on your website, you can enter the relative URL in the field by domain

Example:

/blogg/article.html

If you want to redirect the entire domain, leave the field empty.

4. In the Redirects to field, type the address visitors should be sent to.

Example:

https://www.newdomain.com

⚠️ You must always include the protocol.

Examples:

http:// https:// ftp://

5. Select www settings

Choose how the redirect will handle the www prefix.

You can choose from:

Only redirect with www:

Only visitors who use www are redirected.

Example:

www.example.com

Redirect with or without www:

All visitors are redirected regardless of whether they use www or not.

This is the most common option.

Do Not Redirect www:

Visitors using www are not redirected.

6. Enable wildcards (Wild Card Redirect) (optional)

If you want all pages and files to be redirected to the corresponding address on the new domain, check the Wild Card Redirect.

Examples:

  • olddomain.com/contactnewdomain.com/contact

  • olddomain.com/photos/logo.pngnewdomain.com/photos/logo.png

💡 Tip: This is useful when you move an entire website to a new domain.

7. Click on Add when all settings are done

The system creates the redirect and adds it to the list of current redirects:

To delete a redirect, you can click on Delete under Actions.


Troubleshooting

The redirect does not work

Make sure that:

  • The target address is correctly written

  • You've included http:// or https://

  • The domain points to the correct hosting account

I get the wrong page after creation

Try to:

  • Empty the browser cache

  • Open the page in incognito mode

  • Test from another browser

WordPress or another CMS ignores the redirect

Some third-party applications use their own rules in the .htaccess file.

In such cases, it may be necessary to configure the redirect directly in the application or manually enter the rules.

I want to change a redirect

Existing redirects cannot be edited.

Delete the existing redirect and create a new one with the desired settings.


Summary

You have now learned how to create and manage redirects in cPanel.

By using redirects, you can send visitors to new addresses, move websites without losing traffic and making sure old links still work as expected.

Did this answer your question?