{"id":10945,"date":"2025-02-25T18:12:11","date_gmt":"2025-02-25T12:42:11","guid":{"rendered":"https:\/\/www.idslogic.com\/blog\/?p=10945"},"modified":"2025-02-25T18:35:35","modified_gmt":"2025-02-25T13:05:35","slug":"access-well-known-url-in-adobe-commerce-cloud","status":"publish","type":"post","link":"https:\/\/www.idslogic.com\/blog\/access-well-known-url-in-adobe-commerce-cloud","title":{"rendered":"How to Access \u201c.well-known\u201d URL in Adobe Commerce Cloud"},"content":{"rendered":"\n<p>If you\u2019re working with Adobe Commerce Cloud, you may need to access the URL \u2013 \u201c\/.well-known\/apple-developer-merchantid-domain-association.txt to validate the domain for Apple Pay.\u201d<\/p>\n<p>However, you may realize that you don\u2019t have permission to create the \u201c.well-known\u201d directory at the root of the Adobe Commerce Cloud server. If you find yourself in this situation, keep reading to learn how to access the \u201c.well-known URL.\u201d<\/p>\n<h4><strong>Steps to Access the \u201c.well-known\u201d URL in Adobe Commerce Cloud<\/strong><\/h4>\n<h4><strong style=\"color: initial;\">1. Use the Adobe Commerce Cloud Router Configuration<\/strong><\/h4>\n<p>Since Adobe Commerce Cloud doesn\u2019t allow direct access to the root directory, you can map the required file using the .magento\/routes.yaml file.<\/p>\n<p>Example configuration:<\/p>\n<p>routes:<\/p>\n<p>\u00a0 &#8220;\/.well-known\/apple-developer-merchantid-domain-association.txt&#8221;:<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 type: upstream<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 upstream: &#8220;mymagento:static&#8221;<\/p>\n<p>\u00a0\u00a0\u00a0 cache:<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 enabled: false<br \/><strong style=\"color: initial;\">2. Upload the File to the Static Directory<\/strong><\/p>\n<p>Place your apple-developer-merchantid-domain-association.txt file inside:<\/p>\n<p>pub\/media\/.well-known\/<\/p>\n<p>Follow the below process<\/p>\n<p><strong>Step 1: <\/strong><\/p>\n<p><strong>Create the \u201c.well-known\u201d directory under \/pub\/media\/<\/strong><\/p>\n<p><strong>Step 2: <\/strong><\/p>\n<p><strong>Then download the apple-developer-merchantid-domain-association.txt file from Apple Pay and upload it to \/pub\/media\/.well-known\/<\/strong><\/p>\n<p><strong>Step 3: <\/strong><\/p>\n<p><strong>Log in to Magento 2 admin and navigate to STORES &gt; Configurations &gt; ADVANCED &gt; System and then expand Full Page Cache<\/strong><\/p>\n<p><strong>Step 4: <\/strong><\/p>\n<p><strong>Then navigate to Custom VCL Snippets, expand it, and click on the Create button<\/strong><\/p>\n<p><strong>Step 5: <\/strong><\/p>\n<p><strong>The page below will pop up when you click the Create button.<\/strong><\/p>\n<p><\/p>\n<p>Insert the values below to this page.<\/p>\n<p><strong>Name <\/strong>= Insert any user-friendly name that tells what this snippet is for.<\/p>\n<p><strong>Type<\/strong> = recv<\/p>\n<p><strong>Priority<\/strong> = 100<\/p>\n<p><strong>VCL<\/strong> = Insert below to VCL text area<\/p>\n<p>if (req.url ~ &#8220;\/.well-known\/apple-developer-merchantid-domain-association.txt&#8221;) {set req.url = &#8220;\/media\/.well-known\/apple-developer-merchantid-domain-association.txt&#8221;; return(pass); }<\/p>\n<p><strong>Step 6:<\/strong><\/p>\n<p><strong>Click on the Create button to save it, and then make sure to click on Upload Fastly VCL to upload them to Fastly.<\/strong><\/p>\n<p>Once you are done with these steps, you can access the \u201c.well-known\u201d URL using the link below, even though we have uploaded it to the media directory.<\/p>\n<p><a href=\"https:\/\/your_domain\/.well-known\/apple-developer-merchantid-domain-association.txt\">https:\/\/your_domain\/.well-known\/apple-developer-merchantid-domain-association.txt<\/a><\/p>\n<p>Feel free to <a href=\"https:\/\/www.idslogic.com\/contact-us\/\">contact us<\/a> if you need Adobe Commerce Cloud setup and configuration assistance.<\/p>\n<p>\u00a0<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":10919,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10945","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/posts\/10945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/comments?post=10945"}],"version-history":[{"count":6,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/posts\/10945\/revisions"}],"predecessor-version":[{"id":11492,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/posts\/10945\/revisions\/11492"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/media\/10919"}],"wp:attachment":[{"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/media?parent=10945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/categories?post=10945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/tags?post=10945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}