Interests-based targeting, direct traffic sources, over 73 billion impressions, mainstream and non-mainstream traffic - all this is about HilltopAds!

Guide Using Cloudflare to 301 redirect a domain

Adavice DSP

Neil

Grandpa affLIFT
Staff Member
Community Leader
Joined
Dec 1, 2018
Messages
3,122
Every now and then I find myself needing to redirect a domain, normally if I bought the domain from Namecheap I'd just use their built in advanced DNS but not all domain providers have these features so had to find another way which wasn't going to cost and be quick. I do run a server and use cPanel so previously would just setup a site and use .htaccess or something for a quick fix but due to the corporate greed they seem to be taken over by that option actually costs now so that was out!

I have been using Cloudflare for years now mostly for simple CDN but thought should be able to do something simple like this with them, you can and here is how I did it.

You'll need a Cloudflare account (the free one) and domain name obviously, start off by adding your domain as you normally would

1631955840920-png.20873

When you get to the DNS management part delete ALL the entries then add a dummy IP (anything will do but I tend to use 192.0.0.1) for the root and www like this

1631955992655-png.20874

Then continue with the setup process adding
 
To view the premium content in our affiliate marketing forum (including this awesome thread), you must first register and upgrade your account. Register today and become a part of our amazing community!
Top