{"id":17681,"date":"2020-07-27T12:34:40","date_gmt":"2020-07-27T12:34:40","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=17681"},"modified":"2022-12-14T11:52:53","modified_gmt":"2022-12-14T11:52:53","slug":"how-to-use-various-endpoints-in-amp","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-use-various-endpoints-in-amp\/","title":{"rendered":"How to use various endpoints in AMP"},"content":{"rendered":"\n<p>In this tutorial, we will show you how you can use various endpoints in AMP.<\/p>\n\n\n\n<p>It allows you to add your own custom AMP Endpoints. Using this extension you can customize the structure of the AMP URL as per your requirement. <\/p>\n\n\n\n<p><strong>&nbsp;<\/strong><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 the \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 extensions 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&nbsp;<strong>WordPress Dashboard<\/strong>&nbsp;-&gt;&nbsp;<strong>AMP option panel&nbsp;<\/strong>-&gt;&nbsp;<strong>AMP Subdomain<\/strong>&nbsp;-&gt;&nbsp;<strong>Settings<\/strong>  -&gt;Enable the <strong>AMP URL Format<\/strong> option&nbsp; <\/li><\/ul>\n\n\n\n<p>Once you enable the <strong>AMP URL Format <\/strong>option it will display three options:-<\/p>\n\n\n<p>[ez-toc]<\/p>\n\n\n\n<h4>Use Subdomain As Endpoint.<\/h4>\n\n\n\n<p>If you want the Subdomain to appear at the start of the URL i.e <strong>amp.website.com<\/strong> then you have to select &#8220;<strong>Use Subdomain As Endpoint<\/strong>&#8221; and <strong>Enter the Endpoint<\/strong> as per your requirement.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"542\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_15-1024x542.png\" alt=\"\" class=\"wp-image-18516\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_15-1024x542.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_15-300x159.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_15-768x407.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_15-50x26.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_15-60x32.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_15-100x53.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_15.png 1296w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><b>The output<\/b> <strong>of the option Use Subdomain as Endpoint<\/strong> <strong>will be as:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"724\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_16-1024x724.png\" alt=\"\" class=\"wp-image-18518\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_16-1024x724.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_16-300x212.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_16-768x543.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_16-50x35.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_16-60x42.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_16-100x71.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_16.png 1378w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4>Use Endpoint After Domain.<\/h4>\n\n\n\n<p>If you want to show the endpoint after Domain i.e <strong>website.com\/amp\/post\/<\/strong> then you can select the option &#8220;<strong>Use Endpoint After Domain<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"470\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_17-1024x470.png\" alt=\"\" class=\"wp-image-18520\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_17-1024x470.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_17-300x138.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_17-768x352.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_17-50x23.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_17-60x28.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_17-100x46.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_17.png 1293w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>The output of the option &#8220;Use Endpoint After Domain&#8221;<\/strong> <strong>will be as:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"699\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_18-1024x699.png\" alt=\"\" class=\"wp-image-18524\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_18-1024x699.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_18-300x205.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_18-768x524.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_18-50x34.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_18-60x41.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_18-100x68.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_18.png 1440w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4>Use Endpoint at the End of URL<\/h4>\n\n\n\n<p>If you want that the Endpoint should appear at the end of the URL i.e website.com\/post\/<strong>amp\/<\/strong> then you can select the option &#8220;<strong>Use Endpoint At The End Of the URL<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"596\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/07\/Screenshot_3-1024x596.png\" alt=\"\" class=\"wp-image-18536\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/07\/Screenshot_3-1024x596.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/07\/Screenshot_3-300x174.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/07\/Screenshot_3-768x447.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/07\/Screenshot_3-50x29.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/07\/Screenshot_3-60x35.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/07\/Screenshot_3-100x58.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/07\/Screenshot_3.png 1054w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>The output<\/strong> <strong>of the option &#8220;Use Endpoint at the end of the URL&#8221; will be as<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"626\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_19-1024x626.png\" alt=\"\" class=\"wp-image-18526\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_19-1024x626.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_19-300x183.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_19-768x469.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_19-50x31.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_19-1536x939.png 1536w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_19-60x37.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_19-100x61.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/11\/Screenshot_19.png 1620w\" 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>In this tutorial, we will show you how you can use various endpoints in AMP. It allows you to add your own custom AMP Endpoints. Using this extension you can customize the structure of the AMP URL as per your requirement. &nbsp;Subdomain Endpoints for AMP&nbsp;is a Paid Plugin Extension. You&#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\/17681"}],"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=17681"}],"version-history":[{"count":22,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/17681\/revisions"}],"predecessor-version":[{"id":18537,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/17681\/revisions\/18537"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=17681"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=17681"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=17681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}