Cloudflare 301/2 Redirects ...



  • We have two domains that we own, one was our old original one and then when we went through a rebranding a couple of years ago we changed to a new one. The old domain is set up to redirect to the new.

    I had intended to move the nameservers for both of these domains to Cloudflare but I'm unsure if the redirect from old to new will continue to work.

    On Cloudflare it looks like to set up redirects you have to use what they call page rules. However according to this support page :

    https://support.cloudflare.com/hc/en-us/articles/200172286-How-do-I-perform-URL-forwarding-or-redirects-with-Cloudflare-

    The note at the bottom mentions that page rules are not active if you're only using DNS on Cloudflare which we are since the website itself is hosted on Squarespace.

    Am I out of luck on trying to migrate our nameservers to Cloudflare? Can I use page rules on Cloudflare even if the website itself is hosted elsewhere?

    Thanks



  • DNS doesn't do url redirects, that's the role for web server. Point both domains at you web host and do redirects there.
    I don't know if Squarespace gives you enough control to be able to setup redirects. Hosting website there is a horrible idea anyway, I'd stay away from those website builders as far as you can.



  • @marcinozga said in Cloudflare 301/2 Redirects ...:

    DNS doesn't do url redirects, that's the role for web server. Point both domains at you web host and do redirects there.

    Thanks. I think I'm understanding a little better what Cloudflare does now and how it works which was causing me some confusion before.

    I think I just need to turn on the orange cloud option for the relevant DNS entries. This way our site will run through the Cloudflare system and then the page rules will work to perform the redirect that I want.

    I've set up a forwarding URL page rule and I'll test that out but I think will do what I want.



  • @BraswellJay said in Cloudflare 301/2 Redirects ...:

    @marcinozga said in Cloudflare 301/2 Redirects ...:

    DNS doesn't do url redirects, that's the role for web server. Point both domains at you web host and do redirects there.

    Thanks. I think I'm understanding a little better what Cloudflare does now and how it works which was causing me some confusion before.

    I think I just need to turn on the orange cloud option for the relevant DNS entries. This way our site will run through the Cloudflare system and then the page rules will work to perform the redirect that I want.

    I've set up a forwarding URL page rule and I'll test that out but I think will do what I want.

    That's correct, DNS is much simpler than people realize. CloudFlare, however, offers redirect services on top of their DNS services. So you can do that stuff in CF before it hits the web server, but after it hits DNS. This is because CF has a proxy web server in between.



  • @BraswellJay said in Cloudflare 301/2 Redirects ...:

    I think I just need to turn on the orange cloud option for the relevant DNS entries. This way our site will run through the Cloudflare system and then the page rules will work to perform the redirect that I want.

    That's correct. Page rules can't be run unless the cloud is orange.



  • @scottalanmiller said in Cloudflare 301/2 Redirects ...:

    @BraswellJay said in Cloudflare 301/2 Redirects ...:

    I think I just need to turn on the orange cloud option for the relevant DNS entries. This way our site will run through the Cloudflare system and then the page rules will work to perform the redirect that I want.

    That's correct. Page rules can't be run unless the cloud is orange.

    Because if not, the proxy is not in front to have the rules applied.



  • Like this.

    be78d39b-4bf6-4b74-a15e-ec044e88ed03-image.png
    04f1585b-838d-46eb-826c-be15fd766645-image.png


Log in to reply