How to create and manage redirects in cPanel

Redirects seamlessly lead website visitors from one page to another when a link changes and help maintain search rankings and manage website traffic.

You can set up redirects for your SendPulse-powered website in the DNS panel where your domain is connected.

Let's talk about how to create and manage redirects through the DNS panel for various scenarios in cPanel.

Create a redirect

Go to Domains > Redirects.

Select a type

In the Type field, select a redirect type:

Permanent (301) Used when a page is moved permanently. It transfers the entire page weight and ranking and caches the new URL.
Temporary (302) Used when a page is temporarily unavailable or moved. It does not transfer page weight and ranking and does not cache the new URL.

Select pages

In the https?://(www.)? field, select a domain for which you need to create a redirect. You can select one domain or all domains in your account.

If you need a redirect from a certain page or category, in the second field, specify a path to your old page that goes after your domain name. For example, to create a redirect for https://example.com/features/old-product/, specify features/old-product.

In the Redirects to field, enter the full URL of your new page to which you will redirect website visitors.

Make sure to add the protocol to your link: https://example.com/features/updated-product/.

Set up additional parameters

In the www. redirection field, select redirect rules for links with the www prefix:

Only redirect with www The redirect will apply to links with the www prefix.
Redirect with or without www The redirect will apply to links with or without the www prefix.
Do not redirect www The redirect will not apply to links with the www prefix.

You can also select the Wild card redirect checkbox to redirect all your old domain URLs to the same URLs with your new domain and keep the same URL path.

Once you have selected the redirect settings, click Add.

Manage redirects

To view all your redirects, go to Domains > Redirects, and scroll down to the Current Redirects section. You can also use the search bar to find your domain.

You cannot edit redirects. To make changes to a redirect, you need to delete it and create a new one.

To delete a redirect, click the trash can icon next to it.

Redirect examples

Let's explore some common redirect scenarios and learn how to set them up properly.

Redirect from one domain to another

If you have rebranded or renamed your company, you might need to change your website domain name. To ensure all pages remain accessible via their old paths with your new domain, select the following settings:

Type Permanent (301)
Domain Your website's domain.

Leave the next field blank.

Example: oldsite.com

Redirect to Link to your homepage.

Example: https://newsite.com

www redirect Redirect with or without www
Wild card redirect

This redirect will apply to all website pages. For example, https://oldsite.com/page1 and https://oldsite.com/page2 will redirect to https://newsite.com/page1 and https://newsite.com/page2, accordingly.

Redirect from one page to another

If you want to delete or move a page that has already been indexed by Google and gained rankings, it's best to set up a redirect from the old page to your new one. In this case, select the following settings:

Type Permanent (301).
Domain Your website's domain.

In the next field, specify your old page path.

Example: /oldpage.

Redirect to Link to your new page.

Example: https://example.com/newpage.

www redirect Redirect with or without www
Wild card redirect ×

This redirect will apply only to one specific page. For example, https://example.com/oldpage will redirect to https://example.com/newpage.

Redirect from a subdomain to a domain folder

If you want to delete or edit a website section or category, you should redirect users to your new category page. For example, you can redirect visitors from https://blog.example.com to https://example.com/blog. To do this, select the following settings:

Type Permanent (301).
Domain Your website's subdomain.

Leave the next field blank.

Example: blog.example.com.

Redirect to Link to your new page without the subdomain.

Example: https://example.com/blog.

www redirect Redirect with or without www
Wild card redirect

This redirect will apply to all pages of your specified website category.

Redirect from HTTP to HTTPS

SendPulse automatically redirects pages from HTTP to HTTPS if an SSL certificate is enabled — no additional configuration is needed.

Learn more: How to connect an SSL certificate to a domain.

Redirect from URL with www to URL without www

If you need to open all website pages without www and remove page duplicates, select the following settings:

Type Permanent (301)
Domain Your website's domain.

Leave the next field blank.

Example: example.com.

Redirect to Link to your homepage.

For example: https://example.com.

Your website homepage link will remain the same except for its protocol.

www redirect Redirect with or without www
Wild card redirect

To set up more complex redirects, such as bulk duplicate redirects or additional rules, you'll need to make changes to the .htaccess file.

    Rate this article about "How to create and manage redirects in cPanel"

    User Rating: 5 / 5

    Previous

    How to get a free domain for a year when purchasing a pricing plan

    Popular in Our Blog

    Try SendPulse today for free