How To 301 Redirect in cPanel, the Easy Way

Last Updated on February 14, 2022

Updated 12/22/2016

How to do 301 redirects in cPanel
301 Redirects in cPanel

Instead of paying developers to do 301 redirects for you take the easy and inexpensive way out and do it yourself. There is no need to get all crazy with coding when cPanel makes 301 redirects easy enough for someone with even the most basic of programming skills.
This method also works for 301 redirects for Joomla and 301 redirects for WordPress as they are both likely hosted in a cPanel account.

Note: This How To is for 301 redirects for websites that are hosted on servers running Apache

The Easy 301 Redirect in cPanel

There are two fairly simple ways to do a 301 redirect in cPanel. Below we will demonstrate the easiest way. In this How To, I will be 301 redirecting an old domain of mine ( which I have since let lapse) to my new domain ( You can do a 301 redirect from a domain to a completely new domain or do a 301 redirect within the domain. For example to  In this situation, I am redirecting to because I merged the two companies and want to brand and market them as one. Additionally, I want the SEO value of that old website to transfer to my new website.

For the more visual learner, watch this video instead.

Step One

Log into your cPanel account if you have not already. I use Hostgator for hosting. In case you didn’t know, their customer service kicks ass.

cpanel login

Step Two

Scroll down to the “Domains” section and select “Redirects.”

Cpanel redirects

Step Three

On the Redirects page, you will see the below box in which to place your redirects. For a 301 redirect, choose “Permanent (301)” in the dropdown box Type. (This is likely already preselected). Note that the next dropdown box says “**All Public Domains**.”

cpanel add redirect

Step Three A

Next, in the dropdown box that says “**All Public Domains**” choose the URL of the old website that you are going to be redirecting. In my case, I want to 301 redirect Because I am redirecting the entire domain rather than a page on the domain, I leave the box to the right of my selected domain blank. If I wanted to redirect an individual page, I would grab the text beyond the forward slash (/) and place it there. In other words, I'm redirecting the entire domain, not just a single page (URL).

cpanel domain selection

Step Three B

Now you insert the website/webpage that you want the old website/webpage to redirect to. I want my old website ( to redirect to ( so I put this new domain in the box next to the words “redirects to.”

cpanel redirects to new domain

I then selected the radio button “Redirected with or without www.” as this is my preferred choice. After clicking “Add” you are essentially done.

Step Four

Validate that you have properly redirected your site in two ways:

  1. The bottom of the page will have the redirected info shown there to show your current redirects (see below).
  2. Secondly, type in the old domain and see if it works! (note: mine won't because I no longer own the domain)
confirm cpanel redirect

All done!

The Other, more challenging way

The traditional way of doing 301 redirects is manually editing the code in the htaccess file. You have to first update a file, in the file manager, from (.htaccess.txt) to just (.htaccess). Then you have to edit the actual code manually. Like I said, the above way is easier but some prefer this method. Find more about this method in this blog post that discusses the coding method.

Error Handling and Password Protection Made Simple

If you are not familiar with .htaccess or want to expand your knowledge of how this configuration file can make things easier for system administrators, this guide will do its best to tell you everything you need to know.

Why 301 redirect?

First off, 301 redirects are good for a number of reasons. What it is: A 301 redirect is a permanent redirect which tells the search engines “Hey, this page should now be recognized as” Google recommends 301 redirects and offers the following information on them on their 301 redirects Webmaster tools page:

301 redirects are particularly useful in the following circumstances:

  • You've moved your site to a new domain, and you want to make the transition as seamless as possible.
  • People access your site through several different URLs. If, for example, your home page can be reached in multiple ways - for instance,,, or - it's a good idea to pick one of those URLs as your preferred (canonical) destination, and use 301 redirects to send traffic from the other URLs to your preferred URL. You can also use Webmaster Tools to set your preferred domain.
  • You're merging two websites and want to make sure that links to outdated URLs are redirected to the correct pages.

Still hungry for more knowledge on 301 Redirects? Learn more in this comprehensive post:

Hope this helps you avoid paying a programmer for his time. Let us know in the notes if you have any other questions or if you want to learn more about our SEO services.

Daniel Lofaso

Daniel E. Lofaso is the Founder and CEO of Digital Elevator. He loves classic Land Rover Defenders, surfing, and is a BBQ master. Connect with Lofaso on LinkedIn

Rankings to Revenue Newsletter

Hungry for knowledge?

Biotech SEO: 4 Veteran Strategies for Top Rankings [with examples]
5 Expert Medical Device Marketing Strategies for Optimal Engagement and Conversion
35 Best Pharma Websites in 2023

Subscribe: Rankings to Revenue Newsletter

Get exclusive content marketing tips only shared with email subscribers.