{"id":4885,"date":"2023-09-26T15:38:59","date_gmt":"2023-09-26T22:38:59","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=4885"},"modified":"2024-05-23T10:05:43","modified_gmt":"2024-05-23T17:05:43","slug":"how-to-redirect-a-subdomain-to-a-url-with-cloudflare","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=4885","title":{"rendered":"How to Redirect a Subdomain to a URL with Cloudflare"},"content":{"rendered":"\n<p>For anyone looking to Forward a Subdomain to a URL these are the steps I used as of October 2023. In the example below I will Forward&nbsp;<code>sub.doamin.com<\/code>&nbsp;to&nbsp;<code>https:\/\/google.com<\/code><\/p>\n\n\n\n<p>*<strong>Note:<\/strong>&nbsp;verify Cloudflare is not paused on your domain.&nbsp;<em>(Overview page, lower right under \u201cAdvanced Actions\u201d)<\/em><\/p>\n\n\n\n<p><strong>Step1 &#8211; Create DNS Record<\/strong><br>Type:&nbsp;<code>CNAME<\/code><br>Name: sub<br>Target:&nbsp;<code>domain.com<\/code><br>Proxy status: Proxied<br>TTL: Auto<\/p>\n\n\n\n<p><strong>Step2 &#8211; Create Redirect Rule<\/strong><br>Under \u201cCreate new Dynamic Redirect\u201d<\/p>\n\n\n\n<p><em>For \u201cRule name\u201d name your rule whatever you would like it named.<\/em><\/p>\n\n\n\n<p>If\u2026: Custom filter expression<br>Field: Hostname<br>Operator: equals<br>Value:&nbsp;<code>sub.doamin.com<\/code><\/p>\n\n\n\n<p>Then\u2026<br>Type: Static<br>URL:&nbsp;<code>https:\/\/google.com<\/code><br>Status Code = 301<br>Check the \u201cPreserve query string\u201d checkbox.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For anyone looking to Forward a Subdomain to a URL these are the steps I used as of October 2023. In the example below I will Forward&nbsp;sub.doamin.com&nbsp;to&nbsp;https:\/\/google.com *Note:&nbsp;verify Cloudflare is not paused on your domain.&nbsp;(Overview page, lower right under \u201cAdvanced Actions\u201d) Step1 &#8211; Create DNS RecordType:&nbsp;CNAMEName: subTarget:&nbsp;domain.comProxy status: ProxiedTTL: Auto Step2 &#8211; Create Redirect RuleUnder <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=4885\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[238,1685,9],"tags":[1687,1686],"class_list":["post-4885","post","type-post","status-publish","format-standard","hentry","category-cloud","category-cloudflare","category-networks","tag-redirect-a-subdomain-to-a-url-cloudflare","tag-redirect-a-subdomain-to-a-url-with-cloudflare"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"For anyone looking to Forward a Subdomain to a URL these are the steps I used as of October 2023. In the example below I will Forward sub.doamin.com to https:\/\/google.com *Note: verify Cloudflare is not paused on your domain. (Overview page, lower right under \u201cAdvanced Actions\u201d) Step1 - Create DNS RecordType: CNAMEName: subTarget: domain.comProxy status: ProxiedTTL: Auto Step2 - Create Redirect RuleUnder\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Summa Lai\"\/>\n\t<meta name=\"keywords\" content=\"redirect a subdomain to a url cloudflare,redirect a subdomain to a url with cloudflare,cloud,cloudflare,networks\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/SUMMALAI.COM\/?p=4885\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=4885#article\",\"name\":\"How to Redirect a Subdomain to a URL with Cloudflare | Summa Lai\",\"headline\":\"How to Redirect a Subdomain to a URL with Cloudflare\",\"author\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=4885#articleImage\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/Summa_Logo-150x150.png\",\"width\":96,\"height\":96,\"caption\":\"Summa Lai\"},\"datePublished\":\"2023-09-26T15:38:59-07:00\",\"dateModified\":\"2024-05-23T10:05:43-07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=4885#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=4885#webpage\"},\"articleSection\":\"Cloud, CloudFlare, Networks, Redirect a Subdomain to a URL Cloudflare, Redirect a Subdomain to a URL with Cloudflare\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=4885#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/SUMMALAI.COM\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=238#listItem\",\"name\":\"Cloud\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=238#listItem\",\"position\":2,\"name\":\"Cloud\",\"item\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=238\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=1685#listItem\",\"name\":\"CloudFlare\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=1685#listItem\",\"position\":3,\"name\":\"CloudFlare\",\"item\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=1685\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=4885#listItem\",\"name\":\"How to Redirect a Subdomain to a URL with Cloudflare\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=238#listItem\",\"name\":\"Cloud\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=4885#listItem\",\"position\":4,\"name\":\"How to Redirect a Subdomain to a URL with Cloudflare\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=1685#listItem\",\"name\":\"CloudFlare\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#person\",\"name\":\"sladmin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=4885#personImage\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/Summa_Logo-150x150.png\",\"width\":96,\"height\":96,\"caption\":\"sladmin\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2#author\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2\",\"name\":\"Summa Lai\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=4885#authorImage\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/Summa_Logo-150x150.png\",\"width\":96,\"height\":96,\"caption\":\"Summa Lai\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=4885#webpage\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=4885\",\"name\":\"How to Redirect a Subdomain to a URL with Cloudflare | Summa Lai\",\"description\":\"For anyone looking to Forward a Subdomain to a URL these are the steps I used as of October 2023. In the example below I will Forward sub.doamin.com to https:\\\/\\\/google.com *Note: verify Cloudflare is not paused on your domain. (Overview page, lower right under \\u201cAdvanced Actions\\u201d) Step1 - Create DNS RecordType: CNAMEName: subTarget: domain.comProxy status: ProxiedTTL: Auto Step2 - Create Redirect RuleUnder\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=4885#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2#author\"},\"datePublished\":\"2023-09-26T15:38:59-07:00\",\"dateModified\":\"2024-05-23T10:05:43-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#website\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/\",\"name\":\"Summa Lai\",\"description\":\"Never Stop Learning, Building a Little Wiki...\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Redirect a Subdomain to a URL with Cloudflare | Summa Lai","description":"For anyone looking to Forward a Subdomain to a URL these are the steps I used as of October 2023. In the example below I will Forward sub.doamin.com to https:\/\/google.com *Note: verify Cloudflare is not paused on your domain. (Overview page, lower right under \u201cAdvanced Actions\u201d) Step1 - Create DNS RecordType: CNAMEName: subTarget: domain.comProxy status: ProxiedTTL: Auto Step2 - Create Redirect RuleUnder","canonical_url":"https:\/\/SUMMALAI.COM\/?p=4885","robots":"max-image-preview:large","keywords":"redirect a subdomain to a url cloudflare,redirect a subdomain to a url with cloudflare,cloud,cloudflare,networks","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/SUMMALAI.COM\/?p=4885#article","name":"How to Redirect a Subdomain to a URL with Cloudflare | Summa Lai","headline":"How to Redirect a Subdomain to a URL with Cloudflare","author":{"@id":"https:\/\/SUMMALAI.COM\/?author=2#author"},"publisher":{"@id":"https:\/\/SUMMALAI.COM\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/SUMMALAI.COM\/?p=4885#articleImage","url":"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/05\/Summa_Logo-150x150.png","width":96,"height":96,"caption":"Summa Lai"},"datePublished":"2023-09-26T15:38:59-07:00","dateModified":"2024-05-23T10:05:43-07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/SUMMALAI.COM\/?p=4885#webpage"},"isPartOf":{"@id":"https:\/\/SUMMALAI.COM\/?p=4885#webpage"},"articleSection":"Cloud, CloudFlare, Networks, Redirect a Subdomain to a URL Cloudflare, Redirect a Subdomain to a URL with Cloudflare"},{"@type":"BreadcrumbList","@id":"https:\/\/SUMMALAI.COM\/?p=4885#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM#listItem","position":1,"name":"Home","item":"https:\/\/SUMMALAI.COM","nextItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=238#listItem","name":"Cloud"}},{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=238#listItem","position":2,"name":"Cloud","item":"https:\/\/SUMMALAI.COM\/?cat=238","nextItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=1685#listItem","name":"CloudFlare"},"previousItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=1685#listItem","position":3,"name":"CloudFlare","item":"https:\/\/SUMMALAI.COM\/?cat=1685","nextItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?p=4885#listItem","name":"How to Redirect a Subdomain to a URL with Cloudflare"},"previousItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=238#listItem","name":"Cloud"}},{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?p=4885#listItem","position":4,"name":"How to Redirect a Subdomain to a URL with Cloudflare","previousItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=1685#listItem","name":"CloudFlare"}}]},{"@type":"Person","@id":"https:\/\/SUMMALAI.COM\/#person","name":"sladmin","image":{"@type":"ImageObject","@id":"https:\/\/SUMMALAI.COM\/?p=4885#personImage","url":"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/05\/Summa_Logo-150x150.png","width":96,"height":96,"caption":"sladmin"}},{"@type":"Person","@id":"https:\/\/SUMMALAI.COM\/?author=2#author","url":"https:\/\/SUMMALAI.COM\/?author=2","name":"Summa Lai","image":{"@type":"ImageObject","@id":"https:\/\/SUMMALAI.COM\/?p=4885#authorImage","url":"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/05\/Summa_Logo-150x150.png","width":96,"height":96,"caption":"Summa Lai"}},{"@type":"WebPage","@id":"https:\/\/SUMMALAI.COM\/?p=4885#webpage","url":"https:\/\/SUMMALAI.COM\/?p=4885","name":"How to Redirect a Subdomain to a URL with Cloudflare | Summa Lai","description":"For anyone looking to Forward a Subdomain to a URL these are the steps I used as of October 2023. In the example below I will Forward sub.doamin.com to https:\/\/google.com *Note: verify Cloudflare is not paused on your domain. (Overview page, lower right under \u201cAdvanced Actions\u201d) Step1 - Create DNS RecordType: CNAMEName: subTarget: domain.comProxy status: ProxiedTTL: Auto Step2 - Create Redirect RuleUnder","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/SUMMALAI.COM\/#website"},"breadcrumb":{"@id":"https:\/\/SUMMALAI.COM\/?p=4885#breadcrumblist"},"author":{"@id":"https:\/\/SUMMALAI.COM\/?author=2#author"},"creator":{"@id":"https:\/\/SUMMALAI.COM\/?author=2#author"},"datePublished":"2023-09-26T15:38:59-07:00","dateModified":"2024-05-23T10:05:43-07:00"},{"@type":"WebSite","@id":"https:\/\/SUMMALAI.COM\/#website","url":"https:\/\/SUMMALAI.COM\/","name":"Summa Lai","description":"Never Stop Learning, Building a Little Wiki...","inLanguage":"en-US","publisher":{"@id":"https:\/\/SUMMALAI.COM\/#person"}}]}},"aioseo_meta_data":{"post_id":"4885","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"#aioseo-article-65a0d0df39b45","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-09-26 22:35:25","updated":"2024-05-23 17:05:44","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/SUMMALAI.COM\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/SUMMALAI.COM\/?cat=238\" title=\"Cloud\">Cloud<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/SUMMALAI.COM\/?cat=1685\" title=\"CloudFlare\">CloudFlare<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Redirect a Subdomain to a URL with Cloudflare\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/SUMMALAI.COM"},{"label":"Cloud","link":"https:\/\/SUMMALAI.COM\/?cat=238"},{"label":"CloudFlare","link":"https:\/\/SUMMALAI.COM\/?cat=1685"},{"label":"How to Redirect a Subdomain to a URL with Cloudflare","link":"https:\/\/SUMMALAI.COM\/?p=4885"}],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/4885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4885"}],"version-history":[{"count":2,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/4885\/revisions"}],"predecessor-version":[{"id":5090,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/4885\/revisions\/5090"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}