Cloudflare Redirects: How to Setup 301 Redirects (URL Forwarding) Using Page Rules

Поділитися
Вставка
  • Опубліковано 28 чер 2024
  • 📺 How to Setup 301 Redirects (URL Forwarding) Using Page Rules
    🎁 Free Checklist: devin.to/ps-cloudflare-redirects
    📝 Full Article: devinschumacher.com/cloudflar...
    💌 Stay Updated: devin.to/email
    ▁▁▁▁▁
    So you have a super popular “how to poop standing up” article 💩 butt you just got a new domain hooked up on CloudFlare and are worried that all those people who bookmarked the old URL might not be able to find thew new one…
    Sounds like you need to setup some 301s!
    Unfortunately, setting up a 301 redirect at CloudFlare isn’t that self-explanatory…
    And since nobody likes reading documentation I figured that a true hero needed to step up and make this easy on the rest of the world.
    So here I am, hero of the internet, come to make your life easier once again - with an article, video & SOP for you to save and use later!
    ▁▁▁▁▁
    ⏱ Chapters:
    0:00 Setting up 301 Redirects w/ Cloudflare Walkthrough
    0:50 Step 1: Add Domain to CloudFlare
    1:25 Step 2: Point NameServers
    2:00 Step 3: Update CloudFlare DNS 🎯 [START HERE]
    2:50 Adding the Cloudflare DNS Records
    4:15 Step 4: Setup Page Rules for URL Forwarding
    4:28 What's up guys?
    6:53 URL Forwarding Inner URLs
    7:02 How to poop standing up 💩
    8:05 Bonus, because you stayed until after the credits finished rolling
    ▁▁▁▁▁
    🎁 Feeling Generous?
    🎁 SUPPORT THIS CHANNEL + GET AWESOME STUFF
    Amazon™ pays commissions if I refer people to them, and that person buys something (anything) over the next 24 hours...
    So if you click on one of the affiliate links below buy some crap 💩 you need/want - I'll get a commission from Amazon™ - you'll get a great excuse to buy that 'thing' you've been wanting!
    You don't even need to buy the actual items linked here to support this channel...
    You can just buy yourself something you've been wanting, or do your weekly shopping!
    (i know you've been trying to squeeze that last little bit of toothpaste from the tube for like 3 months now... it's time for a new one)
    🪥 Toothpaste: amzn.to/3iVK9oB
    And that's what I call a win-win!
    hi-five amigo! 👋
    ⚙️ YT Gear:
    - Webcam: amzn.to/3ichX0z
    - Main light: amzn.to/3hRQdhv
    - Background light: amzn.to/3vhAbR9
    - Mic: amzn.to/3PQdrBb
    - DSLR Camera: amzn.to/3Zbapf2
    - Screen Recording: devin.to/screenflow
    - UA-cam SEO Tool: devin.to/vidiq
    ▁▁▁▁▁
    👋 Connect on social:
    - / dvnschmchr
    - / dvnschmchr
    - / dvnschmchr
    - / dvnschmchr
    - / devinschumacher
    ▁▁▁▁▁
    🧑‍⚖️ LEGAL:
    This video is NOT sponsored. Some links are affiliate links, which means if you buy through that link I will receive a small commission at no additional expense to you. As an Amazon Associate I earn from qualifying purchases. Read more about our disclaimers & disclosures for all videos: devinschumacher.com/legal/
    ▁▁▁▁▁
    🦩 Stay funky, my friends.
    🪩 devinschumacher.com/
    ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
    ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
    #cloudflare #dns #301 #redirects #cloudflare #domainnames #spaghetti
    Setup 301 Redirects (URL Forwarding) Using CF DNS & Page Rules:
    Setting up a 301 redirect at CloudFlare isn’t that self-explanatory…
    And since nobody likes reading documentation I figured that a true hero needed to step up and make this easy on the rest of the world.
    So here I am, the hero of the internet, come to make your life easier once again - with an article, video & SOP for you to save and use later.
    1. Add Domain to CloudFlare
    2. Update NameServers
    3. Update CloudFlare DNS
    Record #1:
    - Type: A
    - Name: @
    - IPv4 Address: 192.0.2.1
    Record #2
    - Type: CNAME
    - Name: www
    - Target: @
    4. Setup Page Rules for URL Forwarding
    - Enter the URL pattern you want 301ing
    - Click the dropdown and choose ‘URL Forwarding’
    - Select your ‘Status Code’ from the drop down (probably 301)
    - Enter the destination
    - Click ‘Save and Deploy Page Rule’
    You should be able to go to your forwarded domain, and be taken to the destination.
    If it doesn’t work, make sure:
    - You’ve given enough time for the nameservers to propagate (see step 2)
    - Clear the CloudFlare cache (if you transferred your domain from another Cloudflare account)
    - Clear your browser cache, or try in ‘incognito mode’ (press shift + command + n on most browsers (MAC) to open an incognito window)
    Full article here: devinschumacher.com/cloudflar...
  • Наука та технологія

КОМЕНТАРІ • 122

  • @Guiviro
    @Guiviro 5 місяців тому +2

    Youuu sonoofaab$%! you DID IT! thanks dude, really, I was struggling cause CNAME was not accepting the url with "/" so I did it with CF and followed your tutorial and worked!
    So this is for all the people whi is in the comment section looking for someone saying "is not working" find the full article and follow the steps and re check cause it took me 2 times to make it work.
    Thanks.

  • @jakobjohnston1426
    @jakobjohnston1426 5 місяців тому +3

    Bro your sense of humor is amazing, thanks for making it fun

    • @devinschumacher
      @devinschumacher  5 місяців тому

      Thanks dude! I cant wait to get these damn websites launched so i can go back to making content :)

  • @mickeylsmith3103
    @mickeylsmith3103 7 місяців тому +1

    Thank you for making this video Devin! This video allowed me to quickly fill in the pieces I was missing to forward my URL.

  • @vahidvahedi312
    @vahidvahedi312 7 місяців тому +2

    worked like a charm
    other videos on UA-cam didn't mention to setting DNS records beside the page rule
    Thanks man

  • @karolisrud
    @karolisrud 11 місяців тому +1

    Loved your chill style! Great video, thanks

    • @devinschumacher
      @devinschumacher  11 місяців тому

      thanks! if you got any other burning Qs about internet stuff, drop em in im taking requests!

  • @LiamAdasme
    @LiamAdasme 2 місяці тому

    thank you very much! the redirect rules wasnt enough but your video was what i needed 🔥

  • @jenniferdodd6699
    @jenniferdodd6699 Рік тому +1

    SO HELPFUL. Thank you! I completely forgot about updating my nameservers first too.

    • @devinschumacher
      @devinschumacher  Рік тому

      ya... i should prolly do a video on that too - thanks for the feedback

  • @jskuzma
    @jskuzma 5 місяців тому +1

    This is exactly what I needed. Thank you!

  • @rawessentials-pet-food
    @rawessentials-pet-food 2 місяці тому +1

    thank you! that was fast and helpful, I appreciate your work

  • @7Miss4Bunny7
    @7Miss4Bunny7 4 місяці тому +1

    omg!! Thankyou! This is what I have been looking for.. you saved me a lot of stress!

  • @DavidTschoepe
    @DavidTschoepe Рік тому +2

    Wow, this was just what I needed. I was missing a couple of small details reading through the CF docs.

    • @devinschumacher
      @devinschumacher  11 місяців тому

      if you got any other burning Qs about internet stuff, drop em in im taking requests!

  • @KaiBuskirk
    @KaiBuskirk Місяць тому +1

    thanks man! worked like a charm!

  • @ClaudioMonzeglio
    @ClaudioMonzeglio Рік тому

    Great video and explanation. Explained it so that even a noob like myself fixed it after hours searching for answers, thanks

  • @leucaigua8479
    @leucaigua8479 11 днів тому +1

    You're amazing, thanks.

  • @saxmanwwjd
    @saxmanwwjd 9 місяців тому

    Thanks Devin, it was a great explanation for setting up the 301 redirect. Helped me a lot.

  • @ikleveland
    @ikleveland Рік тому

    You sir are an interesting fella, I never thought the video that would help me with cloudflare redirects would also be the one mentioning standing and pooping. Thanks

    • @devinschumacher
      @devinschumacher  Рік тому

      😂 that is exactly the kind of thing my old roommate @oldmansaxon used to say to me

  • @susanleys
    @susanleys 4 місяці тому +1

    devin - thank you so much for this awesome video (yep, I was stuck too). This was immensely helpful., Thanks again!

    • @devinschumacher
      @devinschumacher  4 місяці тому

      you got i! taking requests on other videos LMK what else you need!

  • @ivanashley5943
    @ivanashley5943 9 місяців тому +2

    Thanks bro! Saved tons of my time.

  • @TheSilverGate
    @TheSilverGate 5 місяців тому

    Thank you very much!!!

  • @alans3935
    @alans3935 11 місяців тому +1

    Simple and easy. Thanks man :)

  • @BraulioNeri
    @BraulioNeri 7 місяців тому +1

    It's working! Many thanks.

  • @adrianwolls
    @adrianwolls 9 місяців тому +1

    Thank you man. Super helpful. I just wanted to forward a specific domain on my website to a product page on Gumroad. Didn't think I'd be listening to someone talk about how to poop standing up. It had me howling 😂For that reason alone. I'm going to subscribe.
    P.s I'm your luckily 1,000th subscriber.

  • @1rfan_saeed
    @1rfan_saeed Рік тому +1

    Thanks, Devin it works!

  • @jeronimolopes
    @jeronimolopes 11 місяців тому +1

    it just works, thank you!!

  • @aaronmani5384
    @aaronmani5384 Рік тому +1

    Thanks Devin, really simple explanation, much appreciated, I knew it could be done, just did not know how! We moved our Website Builder/CMS and could not match URLs which was restriction on the new provider hence had to do a number of redirects :)

    • @devinschumacher
      @devinschumacher  Рік тому

      How many redirects did / do you need to setup?

    • @bharatblad
      @bharatblad Рік тому +1

      @@devinschumacher Just two from live marketing campaigns, I noticed the Cloudflare is restricted to 3 on the free plan, thanks again 👍

    • @devinschumacher
      @devinschumacher  Рік тому

      @@bharatblad i think you can get around that with page rules and use 10.

    • @devinschumacher
      @devinschumacher  11 місяців тому

      @@bharatblad i could make a tool to allow you to do unlimited

  • @lanieldee
    @lanieldee 2 місяці тому +1

    wow that was hard but it worked. thanks for this video!

  • @divinecho5678
    @divinecho5678 6 місяців тому

    Thanks, this was supper helpful

  • @CliffordHepplethwaite
    @CliffordHepplethwaite 10 місяців тому +1

    This helped me. Thanks

  • @pmpknives
    @pmpknives Рік тому +1

    thank you !!!

  • @noonesmokingalot
    @noonesmokingalot 4 місяці тому

    Thank you

  • @Konger023
    @Konger023 Місяць тому

    Thanks!

  • @karahanbedel336
    @karahanbedel336 7 місяців тому

    Thank you bro!!!!!

  • @Ariele.Foster
    @Ariele.Foster 11 місяців тому +1

    great video! Does cloudflare automatically add the A record @ (different IP address from the SOP) and the CNAME www now? I already had those two in my DNS and Cloudflare won't let me add more.

    • @Ariele.Foster
      @Ariele.Foster 11 місяців тому

      nvrmind, i figured it out -- was an old A record from my previous host. Thanks again for this video!

    • @devinschumacher
      @devinschumacher  11 місяців тому

      did you buy your domain somewhere else and point it to cloudflare? it will usually inherit your previous DNS records to avoid causing you interruption.

    • @Ariele.Foster
      @Ariele.Foster 11 місяців тому +1

      @@devinschumacher yes I did and I did en up needing to delete the old DNS records. I got everything working and your video definitely helped. thank you!

    • @devinschumacher
      @devinschumacher  11 місяців тому +1

      @@Ariele.Foster yes they will migrate over DNS record on your behalf as convenience. i wrote a script to delete them all bc it can be a pain when theres alot

    • @Ariele.Foster
      @Ariele.Foster 11 місяців тому

      @@devinschumacher that's awesome -- you are awesome.

  • @brianfarley2723
    @brianfarley2723 Рік тому +1

    Love the color scheme, Miami retro Neon! Man I really needed this explanation, I've been struggling with my cloudflare DNS setup for a while now. How do you feel about cloudflare as a provider in comparison to others?

  • @marshamurphy1922
    @marshamurphy1922 Рік тому +1

    Thanks it’s worked

  • @jabbist
    @jabbist Рік тому +1

    Thank you!

  • @hoanganh.new52
    @hoanganh.new52 7 місяців тому +1

    Thank Devin, let me ask if there is any difference between 301 redirects on Cloudfare and Cpanel. Thank you

    • @devinschumacher
      @devinschumacher  7 місяців тому

      as far as the search engines are concerned (which is what i assume you are asking), as long as your page is 1. redirecting to the new URL destination & 2. the original "request" sends a response code of "301" --- no, there is no difference.
      do whichever you feel more comfortable with.
      are there any performance or cost differences? i don't know that'd be something to test. but probably not worth the effort unless your doing a super huge amount of 301s.

  • @ricardovielmagarcia5431
    @ricardovielmagarcia5431 11 місяців тому +1

    this saved my life, thanks a lot, hey I just want to know how can i keep my domain name, when the redirect comes it changes the name but I want to keep my original url, is that possible with rules?

    • @devinschumacher
      @devinschumacher  11 місяців тому

      can you give me an example please? that explanation was a little unclear

  • @davidalexander9895
    @davidalexander9895 10 місяців тому

    Works great but what if you want the https and http to redirect? Or do you just set the SSL to strict and wait until that's propagated?

  • @audunjemtland8287
    @audunjemtland8287 3 місяці тому +1

    I changed permalink structure from default: ?p=123 to Post name: sample-post/
    Site is pretty new but was indexed before this change.
    What do I need to do, to completely index the site with brand new permalink structure?
    (It completely lost it's visibility, though the site does exist on google and are active.)

    • @devinschumacher
      @devinschumacher  3 місяці тому

      if its new it will take longer. more links = re-indexed and ranked faster. i assume you 301d each URL from the old one to the new one, yes?
      i would just focus on doing seo like normal, improve interlinking on your site for faster re-crawls, & submit your updated XML sitemap to google search console with the new URL structures.
      and did i say build more backlinks? always be building more backlinks.

  • @anandbb1
    @anandbb1 10 місяців тому +1

    Thanks @devin

  • @erikgudi9119
    @erikgudi9119 5 місяців тому

    Amazing! How can there be only one resource on the whole Web explain how this is done?!

  • @growthcab
    @growthcab 8 місяців тому

    You're the man.

  • @renecrooijmans3514
    @renecrooijmans3514 9 місяців тому +1

    Valuable!

  • @Mohamed-ub4ly
    @Mohamed-ub4ly 8 місяців тому

    thanks

  • @FIREcrochethairstyles
    @FIREcrochethairstyles 11 місяців тому

    How do i create a subdomain to do this?

    • @devinschumacher
      @devinschumacher  11 місяців тому

      set the subdomain in the page rule area!

  • @DwannHolmes
    @DwannHolmes 8 місяців тому +1

    what about how to mask instead of forward?

  • @rafaeldacosta8581
    @rafaeldacosta8581 8 місяців тому +1

    i got stuck, thank you

  • @junebanks4163
    @junebanks4163 9 місяців тому

    Do you turn off automatic HTTPS redirects before you do this ?

    • @devinschumacher
      @devinschumacher  8 місяців тому

      no. i want that on. HTTP --> HTTPS --> 301

  • @soroguemedia
    @soroguemedia 9 місяців тому +1

    what did you use to build the kick ass set up checklist? Looks like Notion on steroids!

  • @galahadxd
    @galahadxd 5 місяців тому

    How to redirect based on the visitors Geo Location ?

    • @devinschumacher
      @devinschumacher  5 місяців тому

      that is a totally different can of beans my friend. but.. hahaha i think i know what youre trying to do already ive thought about this alot.
      i think i remember seeing something about this in Cloudflare settings recently actually its a paid upgrade if i remember right.
      also could be done at the NGINX level

  • @francescozaccagnini3063
    @francescozaccagnini3063 Рік тому

    Is it possible to exclude some URLs from Forwarding URL in Page Rules? How would like to access to the WordPress backend of my old website and exclude /wp-admin from forwarding. Thanks 🙂

    • @devinschumacher
      @devinschumacher  Рік тому

      Yes you can setup excludes. But why would yo use forwarding your whole domain and using wordpress at the same time?

    • @francescozaccagnini3063
      @francescozaccagnini3063 Рік тому

      ​@@devinschumacher In case of an ecommerce you might need to access to old orders. I did not find a clear way do to that 😞

    • @devinschumacher
      @devinschumacher  Рік тому

      @@francescozaccagnini3063 if youre hosting the website for wordpress anyways you could just do the redirects via wordpress.
      or if you want to use CF -- are you using PAGE RULES or REDIRECT RULES?

  • @chwaleedmian
    @chwaleedmian 11 місяців тому

    Can i redirect a domain with cloudflare and i dont have hosting
    I mean to say can i redirect using page rule without hosting ?

  • @iammichaelhughes
    @iammichaelhughes Рік тому

    Why did you choose page rules over the Redirect Rules?

    • @devinschumacher
      @devinschumacher  Рік тому

      No particular reason that I remember! Whatever gets the job done

  • @tanangkun
    @tanangkun 9 місяців тому

    How do I delete a rules page?

    • @devinschumacher
      @devinschumacher  8 місяців тому

      click it and hit delete rule i think bottom right?

  • @muna5677
    @muna5677 Рік тому +1

    😂😂 You are forgetting everything like me 😂

    • @devinschumacher
      @devinschumacher  Рік тому

      When you know TOO MUCH … your brain has to toss a few things out from time to time 😂

  • @AlvaroGavilanes
    @AlvaroGavilanes 8 місяців тому

    Gracias muy útil

  • @user-qp6og1js3u
    @user-qp6og1js3u 4 місяці тому +2

    谢谢Thanks♪(・ω・)ノ帮我大忙了😘

  • @Future-Support-Team-Egypt
    @Future-Support-Team-Egypt 2 місяці тому

    thanks alot

  • @user-qp6og1js3u
    @user-qp6og1js3u 4 місяці тому

    谢谢Thanks♪(・ω・)ノ帮我大忙了

  • @edurodriguez29
    @edurodriguez29 Рік тому +1

    Greate video !!! Ths a lot!!!, how do you redirect a subdomain www.dev.sample.com of a domain www.sample.com to another domain --> www.anotherdomain.com ?

    • @devinschumacher
      @devinschumacher  Рік тому +1

      Same way! Just put that in the URI/URL field. Or if you want to redirect ALL subdomains (sometimes websites have a lot) you can use a wildcard character. For cloudflare I think it’s an asterisk ( * ).
      It would look something like:
      *example.com/*

  • @mtpackaging
    @mtpackaging Рік тому

    Hello Davin, I like your video. But your voice is too low, i can not hear you clearly unless turn up to 100%

    • @devinschumacher
      @devinschumacher  11 місяців тому

      yeah i think that was the video i messed up on the recording. sorry :(

  • @devinschumacher
    @devinschumacher  Рік тому +1

    Need to do this more than once in your lifetime?
    🎁Free Checklist: devin.to/ps-cloudflare-redirects
    👆Grab the free SOP (checklist) I made to help you get shit done faster (or just hand off to a VA to do, so you can sip pińa coladas on the beach instead of clicking buttons all day)

  • @CallRylee
    @CallRylee 29 днів тому +1

    gets to page rules.... deprecated 😂😂😂😂😂😂😂😂😂😂😂😂

    • @CallRylee
      @CallRylee 29 днів тому +1

      ok, i can still use it though it seems. thank you Devin!!! and my @godaddy burn in hell :)

    • @devinschumacher
      @devinschumacher  29 днів тому

      @@CallRylee yeah that JUST changed that. been workin' for a year. i guess ill need to make an updated video when it stopped. and also yes, godaddy = 👹 death to

  • @CyberSecDiscord
    @CyberSecDiscord Рік тому +2

    Thanks!