domain name redirect redirection without hosting web cloudflare cpanel dns easy

How to Redirect a Domain Without Hosting for Free

Published by Soufiane Sabiri | Categories : Computers - Internet - Computers - Networking - Computers - Tips & Tricks

Are you tired of using your hosting and .htaccess for a simple redirection?

Do you want to redirect all your secondary domain names to one domain name?

Cloudflare is the leader CDN provider in the world with dozens of features allowing users to benefit from fast caching and providing the best browsing speed and experience to their users.

You can also use Cloudflare to redirect traffic using custom rules, without using your hosting and .htaccess which can be troublesome and time-consuming.

In this tutorial, you will learn the easy way to create a redirection from a domain name to another using Cloudflare Free plan.

Let’s dive in!

Redirect Traffic from a Domain to Another With Cloudflare

First, you need to create a new Cloudflare account from here.

Then after you log in to your dashboard, click on “Add a Site.”

domain name redirect redirection without hosting web cloudflare cpanel dns 1

Enter your domain name and click “Add site.”

domain name redirect redirection without hosting web cloudflare cpanel dns 2

Select the Free plan and click “Confirm plan.”

domain name redirect redirection without hosting web cloudflare cpanel dns 3

Add the Cloudflare’s DNS servers to your domain name’ admin panel. If you are using Godaddy you can find them under “Nameservers.”

nameservers dns cloudflare godaddy

Now add 2 records like this:

  • Type: A
  • Name: @
  • IPv4 address: 192.1.2.3 (use any IP, doesn’t matter)
domain name redirect redirection without hosting web cloudflare cpanel dns 4
  • Type: A
  • Name: www
  • IPv4 address: 192.1.2.3 (use any IP, doesn’t matter)
domain name redirect redirection without hosting web cloudflare cpanel dns 5

Click on “Continue.”

domain name redirect redirection without hosting web cloudflare cpanel dns 6

Open “Page Rules” from the menu on top. Click “Create Page Rule.”

domain name redirect redirection without hosting web cloudflare cpanel dns 7

Setup the page rules like this:

  • *mydomainname.com/*
  • Forwarding URL
  • 301 – Permanent Redirect
  • https://mynewdomainame/$2

Click on “Save and Deploy.”

domain name redirect redirection without hosting web cloudflare cpanel dns 8

You can turn this redirection any time or create 2 more rules if you want for free.

domain name redirect redirection without hosting web cloudflare cpanel dns 9

Now try to access your domain name in a few hours, you can flush the DNS cache on Windows using ipconfig /flushdns and try to open the site again, it should redirect successfully.

If you have any problems please leave a comment below!

Thank you and see you in the next tutorial on easytutorial.


Related tutorials:


Author: Soufiane Sabiri

Soufiane is a young computer scientist and specialist in web design, knows a lot of things in the computer world. This enthusiast enjoys helping people innovate and learn more about the IT world...

Be the first to leave a comment !

Leave a comment

xD oO ^_^ =] =) ;-( ;) :| :woot: :whistle: :sleep: :sick: :police: :p :o :ninja: :mm: :love: :lol: :kiss: :hmm: :evil: :bandit: :angel: :alien: :D :) :( 8)