/ #cdn #dev-decoded 

The step-by-step guide to create a domain redirect with Cloudflare

Be logged into your dashboard. Select the domain you want to redirect from Go to page rules Click “Create page rule” Enter your.domain/* (matches all traffic) for which URLs will have their traffic redirected Click “Add a Setting” Select “Forwarding URL” Select the type of redirect, I recommend 302s since they’re less aggressively cached (so if you ever want to use that domain to do something else other than redirect, you can) Enter your forwarding URL Click “Save and Deploy” You’re done, you’ve just created a redirect from your domain to another one 🙂
Table of Contents

Be logged into your dashboard.

  1. Select the domain you want to redirect from
  2. Go to page rules

  3. Click “Create page rule”

  4. Enter your.domain/* (matches all traffic) for which URLs will have their traffic redirected

  5. Click “Add a Setting”

  6. Select “Forwarding URL”

  7. Select the type of redirect, I recommend 302s since they’re less aggressively cached (so if you ever want to use that domain to do something else other than redirect, you can)

  8. Enter your forwarding URL

  9. Click “Save and Deploy”

You’re done, you’ve just created a redirect from your domain to another one 🙂

unsplash-logoAndrew Preble

Looking for a new job? Take Triplebyte’s quiz and have top tech companies pitch you!

Author

Hugo Di Francesco

A Software Engineer who is big on Node.js, queues and Vue(s). Co-author of "Professional JavaScript" with Packt. He shares practical JavaScript tips for the developer who wants to get things done on Code with Hugo. University College London (UCL), MEng Mathematical Computation Graduate.

Get Testing Superpowers with these Underused Jest Features

Subscribe for free resources that turbocharge your Jest tests and a discount on the "Advanced Jest Handbook"