25.1 C
Thursday, October 29, 2020

How to Setup 301 Redirect Using Cloudflare?

- Advertisement - data-full-width-responsive="false">

Recently made some re-branding with one of our old blog, very popular and has been online for 6+ years, I made the redirect using Namecheap DNS server (those using Namecheap should be familiar with this) but it did not work for me and majority of the world, then I moved the DNS to DNSMADEEASY infrastructure but then a new issue arise which is SSL error, which is not a good sign as it could damaged the reputation of the domain.

- Advertisement -

So during my research I found some tutorial on how to use Cloudflare to 301 redirect and forward the old domain to the new one with no SSL issues, but the tutorial did not work so with the help of the Cloudflare community I was able to get it working.

How to redirect domain using Cloudflare?

So, let’s get started with the steps on how to use Cloudflare network for domain forwarding…

Step 1

First you will need to add your domain that you want to redirect to Cloudflare. Simply signup for a free account, then add your domain and proceed to the next step.

Step 2

Here you will select the FREE plan and then continue to the next step.

Step 3

By default the scan will show you the records of your current domain. You can simply delete everything and simply leave an A name record for both the www version and your primary domain. Replace your IP with this one (This is a dummy IP leads nowhere, so don’t worry). Below is a screenshot of our my settings looks like.

Step 4

Next step is to update the nameserver for the domain you wish to redirect, for me its healthable.net or healthable.org. I have made the changes in my Namecheap account.

Step 5

Under the Crypto menu, select “Flexible” SSL. You will need this to ensure that redirects over HTTPS also work.

301 Redirect Cloudflare

This enables a universal SSL certificate on both *.domain.com and domain.com. This uses SNI and works on all major browsers… (looking at you explorer ? ).

Step 6

Under the Page Rules menu click on “Create Page Rule.”

301 Redirect Cloudflare

Step 7

Here is where the magic happens, so make the following changes..

You will then want to enter the following pattern:


Select “Forwarding URL” and “301 – Permanent Redirect” for the settings, and input the following rule:


The /$2 enables the wildcard part to function. Then click on “Save and Deploy.”  Below is a screenshot of what was done, just follow the steps outlined.

301 Redirect Cloudflare

The single rule above makes the following work:

  • http://healthable.org/ 301 redirects to https://healthtian.com
  • https://www.healthable.org/ 301 redirects to https://healthtian.com
  • http://www.healthable.org/* 301 redirects to https://healthtian.com/*
  • https://healthable.org/* 301 redirects to https://healthtian.com/*

To see if its working you can use redirect tracker or redirectcheck.com

Read more about Cloudflare page rules. And that is it! You can now ditch the hosting plan on your old domain and your wildcard 301 redirects will now be in place forever, pointing to your new domain. If you have any issues concerning this tutorial simple comment below or post in the cloudflare forum.

Kingsley Felixhttps://kraftysprouts.media
Based in Port Harcourt, Nigeria. I am the founder of Krafty Sprouts Media, LLC (US), i make sure thing run smoothly and well organized in our organization. Follow me on my social media platforms.
- Advertisement -

Trending Now

Generac 6923 Gas Powered Pressure Washer

The pressure washer has become the basic need of the home because I have a very big home that contain tiles, floor along with...
- Advertisement -

10 Best Places to Download Bollywood Movies

Do you spend hours watching Bollywood movies as I do? Have you been in search of the perfect sites to download the...

Startimes Subscription Prices, Packages and Channels List in 2020

StarTimes Nigeria is one of the popular cable TV providers in Nigeria. This service is a subsidiary of a Chinese based company...

GB WhatsApp, WhatsApp Plus and OG WhatsApp Tips and Tricks

Checkout the new GB WhatsApp Tutorial. Hello, welcome to WhatsApp Plus, OG WhatsApp and GB WhatsApp tips and tricks. For the sake of this article,...

StarTimes Customer Service Contact and Simple Error Fixes

StarTimes has fast become one of Nigeria's most used cable or digital Pay Tv. Despite its vast customer reach, the company has...

GOtv Error Codes: How to Clear and Resolve GOtv Errors

If you are a GOTV user, you have probably encountered one or two GOTV errors, and these errors are preventing you from...

New GOtv Packages, Channel List and Price for 2020

GOtv and DStv are both owned by Multichoice, and there's no arguing the fact that they have proven to be the largest...

7 Best Offline Racing Games for Android Users in 2020

Are you a real gamer? If you are one, then you will know how exciting it can be to experience the adrenaline rush that...

Best Low Size PC Action Games For Your Old PC/Laptop With Low Specs

Gaming time is one our favorite time and nothing beats the ability to play high-quality games on our PCs but like some of our...

Access Bank Mobile App: Features and Download Link

CBN has approved the use of mobile applications for banks to facilitate transactions with customers. This means that you can communicate by...

*901#: How to Use Access (Diamond) Bank USSD Code

Access Bank is a Nigerian multinational and commercial bank licensed by the Central Bank of Nigeria. As one of...
- Advertisement -

Related Posts

What is Gaming Mode and How to enable it on Windows 10 PC?

The World's number one operating system, Microsoft's Windows, offers a lot of features that made it above everyone else. Windows 10 is its latest iteration,...

6 Smart Ways You Can Use a USB Flash Drive

A USB drive can do a whole lot more than just transporting your data, which is probably the most common use for a USB...

400 Bad Request: The plain HTTP request was sent to HTTPS port Plesk

Recently upgraded to Plesk 17.5 though not marked as stable release in command line, it can be used for production site that is what...

What to Consider When You Are Looking to Buy a Coffee Maker

When looking to purchase your coffee maker, it is important to consider several factors. Often with coffee makers going cheap doesn’t always mean you...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.