{"id":16774,"date":"2020-03-12T05:56:06","date_gmt":"2020-03-12T05:56:06","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=16774"},"modified":"2020-06-01T08:46:00","modified_gmt":"2020-06-01T08:46:00","slug":"how-to-set-up-subdomain-endpoint-for-amp","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-set-up-subdomain-endpoint-for-amp\/","title":{"rendered":"How to set up Subdomain Endpoint for AMP"},"content":{"rendered":"\n<p> <mark style=\"background-color: yellow;\"><strong>Step 1 &#8211; <\/strong><\/mark>First we have to create Wildcard subdomain entry using DNS.<\/p>\n\n\n\n<ul><li>To create a wildcard subdomain in cPanel, navigate to <strong>Domains<\/strong> -&gt; <strong>Zone Editor<\/strong> from the cPanel menu.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"817\" height=\"248\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/3-4.png\" alt=\"\" class=\"wp-image-16922\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/3-4.png 817w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/3-4-300x91.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/3-4-768x233.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/3-4-50x15.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/3-4-60x18.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/3-4-100x30.png 100w\" sizes=\"(max-width: 817px) 100vw, 817px\" \/><\/figure>\n\n\n\n<ul><li>Then click + A Record to create an A record for your wildcard subdomain (*.yourdomain.com.).<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"820\" height=\"308\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/2-2.png\" alt=\"\" class=\"wp-image-16882\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/2-2.png 820w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/2-2-300x113.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/2-2-768x288.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/2-2-50x19.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/2-2-60x23.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/2-2-100x38.png 100w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/figure>\n\n\n\n<ul><li>Note the additional period&nbsp;after&nbsp;your domain name. Ensure that A record points to your server\u2019s IP address.<\/li><\/ul>\n\n\n\n<ul><li>While creating the name of the record use asterix (*) followed by site name <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/hostpapasupport.com\/knowledgebase\/wp-content\/uploads\/2018\/02\/5-2.png\"><img decoding=\"async\" src=\"https:\/\/hostpapasupport.com\/knowledgebase\/wp-content\/uploads\/2018\/02\/5-2.png\" alt=\"A record configuration\" class=\"wp-image-38939\"\/><\/a><\/figure>\n\n\n\n<ul><li>Click&nbsp;<strong>Add an A Record<\/strong>&nbsp;to complete the configuration and now  Wildcard Subdomain is created.<\/li><\/ul>\n\n\n\n<ul><li>If you are not using the c-panel then you have to contact your hosting team and inform them to create a wildcard subdomain.<\/li><\/ul>\n\n\n\n<p><strong>After creating Wildcard Subdomain now you have to enable URL format using &#8220;Subdomain Endpoints for AMP\u201d plugin settings for that you can follow the below-given steps <\/strong><\/p>\n\n\n\n<p><mark style=\"background-color: yellow;\"><strong>Step 2 &#8211; <\/strong><\/mark><a href=\"https:\/\/ampforwp.com\/addons\/subdomain-endpoints-for-amp\/\">Subdomain Endpoints for AMP<\/a>  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 <strong>Subdomain Endpoints for AMP<\/strong> \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 <strong>WordPress Dashboard<\/strong> -&gt; <strong>AMP option panel <\/strong>-&gt; <strong>AMP Subdomain<\/strong> -&gt; <strong>Settings <\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"494\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/14-1024x494.png\" alt=\"\" class=\"wp-image-16775\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/14-1024x494.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/14-300x145.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/14-768x371.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/14-50x24.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/14-60x29.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/14-100x48.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/14.png 1312w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul><li>Then you have to enable the AMP URL Format option after that you have to select <strong>Use Subdomain As Endpoint<\/strong>. <\/li><\/ul>\n\n\n\n<ul><li>After selecting <strong>Use Subdomain As Endpoint<\/strong> option then you will be having a textarea named <strong>Enter subdomain<\/strong>. <\/li><\/ul>\n\n\n\n<ul><li>Once you enter the required subdomain and then click on the \u201c<strong>Save Changes<\/strong>\u201d button.  <\/li><\/ul>\n\n\n\n<p style=\"background-color: #ffdddd; border-left: 2px solid #f44336; padding:10px;\"><strong>Note:<\/strong> Make sure to resave the Permalinks once you select an option.<\/p>\n\n\n\n<h4>The output of Single post <\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"370\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/single-1-1024x370.jpg\" alt=\"\" class=\"wp-image-16777\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/single-1-1024x370.jpg 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/single-1-300x109.jpg 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/single-1-768x278.jpg 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/single-1-50x18.jpg 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/single-1-60x22.jpg 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/single-1-100x36.jpg 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/single-1.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4><strong>The Output of <\/strong>Homepage<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"283\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/homepage-2-1024x283.jpg\" alt=\"\" class=\"wp-image-16778\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/homepage-2-1024x283.jpg 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/homepage-2-300x83.jpg 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/homepage-2-768x212.jpg 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/homepage-2-50x14.jpg 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/homepage-2-60x17.jpg 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/homepage-2-100x28.jpg 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/03\/homepage-2.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\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>Step 1 &#8211; First we have to create Wildcard subdomain entry using DNS. To create a wildcard subdomain in cPanel, navigate to Domains -&gt; Zone Editor from the cPanel menu. Then click + A Record to create an A record for your wildcard subdomain (*.yourdomain.com.). Note the additional period&nbsp;after&nbsp;your domain&#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\/16774"}],"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=16774"}],"version-history":[{"count":52,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/16774\/revisions"}],"predecessor-version":[{"id":17431,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/16774\/revisions\/17431"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=16774"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=16774"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=16774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}