{"id":18256,"date":"2021-06-18T13:05:41","date_gmt":"2021-06-18T13:05:41","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=18256"},"modified":"2021-06-18T13:26:06","modified_gmt":"2021-06-18T13:26:06","slug":"how-to-redirect-subdomain-url-to-the-amp-cdn-url","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-redirect-subdomain-url-to-the-amp-cdn-url\/","title":{"rendered":"How to Redirect Subdomain URL to the AMP CDN URL?"},"content":{"rendered":"\n<p>In this tutorial, we will show you how to Redirect Subdomain URL to the AMP CDN URL for this follow below the instructions.<\/p>\n\n\n\n<p><a href=\"https:\/\/ampforwp.com\/addons\/subdomain-endpoints-for-amp\/\">Subdomain Endpoints for AMP<\/a>&nbsp;is a Paid Plugin Extension. You won\u2019t find that extension in the WordPress Plugin directory. So you have to upload this plugin after purchasing.<\/p>\n\n\n\n<ul><li>Click on&nbsp;<strong>Upload Plugin<\/strong><\/li><li>Then choose \u201c&nbsp;<strong>Subdomain Endpoints for AMP<\/strong>&nbsp;\u201d Extension from which you already downloaded after purchase.<\/li><li>After that, click on&nbsp;<strong>Install Now<\/strong><\/li><\/ul>\n\n\n\n<p>For more details on how to upload extension click on this link&nbsp;<a href=\"https:\/\/ampforwp.com\/tutorials\/article\/amp-in-wordpress-beginners-guide\/?preview=true\/#method-2\">Upload and Install.<\/a><\/p>\n\n\n\n<ul><li>Once you activate the plugin you will find this option in the\u00a0<strong>WordPress Dashboard<\/strong>\u00a0->\u00a0<strong>AMP option panel\u00a0<\/strong>->\u00a0<strong>AMP Subdomain<\/strong>\u00a0->\u00a0<strong>Settings<\/strong>\u00a0->Enable the\u00a0<strong><strong>Redirect URL to AMP CDN URL<\/strong><\/strong> option and click on the <strong>save changes<\/strong> button as shown below the screenshot.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"240\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/12-1024x240.png\" alt=\"\" class=\"wp-image-18263\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/12-1024x240.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/12-300x70.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/12-768x180.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/12-50x12.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/12-60x14.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/12-100x23.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/12.png 1222w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul><li><strong>Redirect URL to AMP CDN URL:<\/strong> Redirect URL to AMP Cache URL Format format<\/li><\/ul>\n\n\n\n<ul><li>Once you enable \u201c<strong><strong><strong>Redirect URL to AMP CDN URL<\/strong><\/strong><\/strong>\u201d option inside the \u201c<strong><strong>Homepage Redirection<\/strong><\/strong>\u201d option will be displayed and then click on the \u201c<strong>Save Changes<\/strong>\u201d button.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"424\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/11-1024x424.png\" alt=\"\" class=\"wp-image-18264\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/11-1024x424.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/11-300x124.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/11-768x318.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/11-50x21.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/11-60x25.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/11-100x41.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/06\/11.png 1234w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul><li><strong>Homepage Redirection: <\/strong>Turn it ON if you want to redirect Homepage to \/amp rather than CDN URL<\/li><\/ul>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to Redirect Subdomain URL to the AMP CDN URL for this follow below the instructions. Subdomain Endpoints for AMP&nbsp;is a Paid Plugin Extension. You won\u2019t find that extension in the WordPress Plugin directory. So you have to upload this plugin after purchasing&#8230;.<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[180],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/18256"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=18256"}],"version-history":[{"count":6,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/18256\/revisions"}],"predecessor-version":[{"id":18267,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/18256\/revisions\/18267"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=18256"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=18256"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=18256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}