{"id":250,"date":"2023-08-18T03:55:01","date_gmt":"2023-08-18T03:55:01","guid":{"rendered":"https:\/\/emersoncode.com\/blog\/?p=250"},"modified":"2023-08-18T04:03:13","modified_gmt":"2023-08-18T04:03:13","slug":"buy-and-setup-a-301-redirect-with-cloudflare-only-registrar-and-redirection","status":"publish","type":"post","link":"https:\/\/emersoncode.com\/blog\/buy-and-setup-a-301-redirect-with-cloudflare-only-registrar-and-redirection\/","title":{"rendered":"Buy and setup a 301 redirect with Cloudflare only (Registrar and redirection)"},"content":{"rendered":"\n<p>it took a dumb amount of time for me to find the answer\u2122 to the query:<br><br>&gt; i just purchased a domain via Cloudflare (used Google Domains but no thanks SquareSpace)<\/p>\n\n\n\n<p>&gt; i set up email for it via Google Workplace, added gmail DNS records (automatically via Workplace setup where it recognizes you&#8217;re using Cloudflare and offers to do it for you) <br><br>&gt; and of course in Cloudflare set up a 301 redirection rule via page rules <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Why isn&#8217;t my domain redirecting then?! (Or resolving at all)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Go into your DNS settings in Cloudflare and add the very important two A records for &#8220;@&#8221; and &#8220;www&#8221;<\/p>\n\n\n\n<p>For the IP address, enter <strong>19.0.2.1<\/strong><\/p>\n\n\n\n<p>Adding the new record(s):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/screenShot-Google-Chrome-Records-defendyourdiscounts.com-Phil@emersoncode.coms-Account-Cloudflare-at2023-08-17.-23.53.28-1024x462.png\" alt=\"\" class=\"wp-image-252\" width=\"840\" height=\"379\" srcset=\"https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/screenShot-Google-Chrome-Records-defendyourdiscounts.com-Phil@emersoncode.coms-Account-Cloudflare-at2023-08-17.-23.53.28-1024x462.png 1024w, https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/screenShot-Google-Chrome-Records-defendyourdiscounts.com-Phil@emersoncode.coms-Account-Cloudflare-at2023-08-17.-23.53.28-300x135.png 300w, https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/screenShot-Google-Chrome-Records-defendyourdiscounts.com-Phil@emersoncode.coms-Account-Cloudflare-at2023-08-17.-23.53.28-768x346.png 768w, https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/screenShot-Google-Chrome-Records-defendyourdiscounts.com-Phil@emersoncode.coms-Account-Cloudflare-at2023-08-17.-23.53.28-1536x693.png 1536w, https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/screenShot-Google-Chrome-Records-defendyourdiscounts.com-Phil@emersoncode.coms-Account-Cloudflare-at2023-08-17.-23.53.28.png 1805w\" sizes=\"(max-width: 840px) 100vw, 840px\" \/><figcaption class=\"wp-element-caption\">Adding the @ record&#8230; You&#8217;ll do this twice, once using @ for the hostname and once using www<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/image-1-1024x306.png\" alt=\"\" class=\"wp-image-253\" width=\"840\" height=\"251\" srcset=\"https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/image-1-1024x306.png 1024w, https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/image-1-300x90.png 300w, https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/image-1-768x230.png 768w, https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/image-1-1536x459.png 1536w, https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/image-1.png 1796w\" sizes=\"(max-width: 840px) 100vw, 840px\" \/><figcaption class=\"wp-element-caption\">When you&#8217;re done it should have these two records <\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Wtf is that IP address I&#8217;m entering?<\/strong>  It&#8217;s a dummy <strong>Reserved<\/strong> IP address as described in this Cloudflare forum thread by Laudian:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"876\" height=\"273\" src=\"https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/image.png\" alt=\"\" class=\"wp-image-251\" srcset=\"https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/image.png 876w, https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/image-300x93.png 300w, https:\/\/emersoncode.com\/blog\/wp-content\/uploads\/2023\/08\/image-768x239.png 768w\" sizes=\"(max-width: 876px) 100vw, 876px\" \/><figcaption class=\"wp-element-caption\"><a href=\"https:\/\/community.cloudflare.com\/t\/cloudflare-dummy-ips\/516064\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/community.cloudflare.com\/t\/cloudflare-dummy-ips\/516064<\/a><\/figcaption><\/figure>\n\n\n\n<p>I too first saw <strong>19.1.2.3<\/strong> recommended&#8230; it&#8217;s not on the dedicated list but  (1) i&#8217;m sure you&#8217;d be fine and (2) not my problem. <\/p>\n\n\n\n<p>I used <strong>19.0.2.1<\/strong> just to be safe *<\/p>\n\n\n\n<p>* i placed all my trust in the first correct looking answer on the forum post (Thanks Laudian)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>it took a dumb amount of time for me to find the answer\u2122 to the query: &gt; i just purchased a domain via Cloudflare (used Google Domains but no thanks SquareSpace) &gt; i set up email for it via Google Workplace, added gmail DNS records (automatically via Workplace setup where it recognizes you&#8217;re using Cloudflare [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/emersoncode.com\/blog\/wp-json\/wp\/v2\/posts\/250"}],"collection":[{"href":"https:\/\/emersoncode.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emersoncode.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emersoncode.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emersoncode.com\/blog\/wp-json\/wp\/v2\/comments?post=250"}],"version-history":[{"count":4,"href":"https:\/\/emersoncode.com\/blog\/wp-json\/wp\/v2\/posts\/250\/revisions"}],"predecessor-version":[{"id":262,"href":"https:\/\/emersoncode.com\/blog\/wp-json\/wp\/v2\/posts\/250\/revisions\/262"}],"wp:attachment":[{"href":"https:\/\/emersoncode.com\/blog\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emersoncode.com\/blog\/wp-json\/wp\/v2\/categories?post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emersoncode.com\/blog\/wp-json\/wp\/v2\/tags?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}