{"id":10037,"date":"2022-12-27T17:40:37","date_gmt":"2022-12-27T12:10:37","guid":{"rendered":"https:\/\/www.skynats.com\/?p=10037"},"modified":"2023-06-15T17:02:34","modified_gmt":"2023-06-15T11:32:34","slug":"cloudflare-permanent-redirect","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/cloudflare-permanent-redirect\/","title":{"rendered":"Cloudflare Permanent Redirect: Simple Setup"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Let&#8217;s take a closer look at how to create permanent redirect links using Cloudflare. Our Server Management Services at Skynats can provide you with a thorough tutorial on how to proceed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-permanent-redirect\">Permanent redirect<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A 301 indicates that a URL has been permanently redirected from one to another. This implies that visitors who request the old URL will be redirected to the new URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A 301 redirect is most frequently used when a page has been removed or permanently moved from a website and moves all ranking power from the old URL to the new URL. With Cloudflare, a user can configure and control the ongoing redirection of links.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-301-moved-permanently\">301 Moved Permanently :<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redirecting the requested site&#8217;s URL permanently. Now that the target resource has a new, permanent URI, any upcoming references to it should use one of the URIs that are included.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These responses can be generated by Cloudflare, so there is no need to use Page rules to make a request to the origin server&#8217;s response. In conclusion, Cloudflare enables users to set up URLs for permanent redirects.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Configuration<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To accomplish this, add a DNS record for the www subdomain. The value must be either 192.0.2.1 or an AAAA record containing a value 100::.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To execute the Page Rule action that you will define in the following steps, the newly created DNS record must also have Cloudflare&#8217;s proxy enabled (orange-clouded).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then, create the Page rule for permanent link redirection with Cloudflare. The Page Rule that will handle the redirect. As a result, all pathways will be redirected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A 301 is used to accomplish this (Permanent Redirect). By matching all paths, the visitor will be redirected to iab1234cd.com\/blog\/category\/example from www.ab1234cd.com\/blog\/category\/example.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Follow the instructions below to modify the Cloudflare rule for permanent link redirects:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the Cloudflare dashboard&#8217;s Rules section.<\/li>\n\n\n\n<li>Select Create Page Rule.<\/li>\n\n\n\n<li>Choose www.ab1234cd.com\/* as the target, where \/* matches all paths.<\/li>\n\n\n\n<li>Choose 301 &#8211; Permanent Redirect from the status code field and Forwarding URL from the drop-down menu.<\/li>\n\n\n\n<li>Lastly, modify the Forwarding URL address to read https:\/\/example.com\/$1, with the wildcard match in target (the *) replacing the $1.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">To complete the process of redirecting permanent links with Cloudflare, click Save and Deploy page rule and then wait for the rule to take effect.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s take a closer look at how to create permanent redirect links using Cloudflare. Our Server Management Services at Skynats can provide you with a thorough tutorial on how to proceed. Permanent redirect A 301 indicates that a URL has been permanently redirected from one to another. This implies that visitors who request the old [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,312],"tags":[313],"class_list":["post-10037","post","type-post","status-publish","format-standard","hentry","category-blog","category-cloudflare","tag-cloudflare"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/10037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=10037"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/10037\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=10037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=10037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=10037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}