Hello I want to integrate a Shopify shop witn IndexNow, and i need to post an API Key as a text in a shop in a wy that IndexNow will hve an acces o it? How do i do that, putting it in files and in assets in a shop did not work properly
Topic summary
Issue: A user needs to integrate IndexNow with their Shopify store by hosting an API key text file that IndexNow can access. Initial attempts to place the file in the shop’s assets folder were unsuccessful.
Solution Provided:
- Upload the API key file via Content > Files in Shopify admin
- Obtain the generated CDN URL (format:
https://cdn.shopify.com/s/files/...) - Convert it to use the custom domain (format:
https://www.yourdomainname.com/cdn/shop/files/...) - Create a redirect:
- From:
/keyfilename.txt(root level) - To: The custom domain CDN URL
- From:
This workaround allows IndexNow to access the verification file at the root domain level while Shopify hosts it on their CDN infrastructure.
Status: Solution provided; no follow-up confirmation of success yet.
-
Add a file under Content > Files
-
Get the url for that file
https://cdn.shopify.com/s/files/1/0613/5804/7413/files/keyfilename7c4f50b98cd2d7410d08fa.txt?v=1744724680 -
Change it to your domain
https://www.yourdomainname.com/cdn/shop/files/keyfilename7c4f50b98cd2d7410d08fa.txt -
Add a redirect
Redirect From: /keyfilename7c4f50b98cd2d7410d08fa.txt
Redirect To: https://www.yourdomainname.com/cdn/shop/files/keyfilename7c4f50b98cd2d7410d08fa.txt
Create the text file and upload to your files. Then 301 redirect the root directory /file.txt to your file. (see instructions - https://www.youtube.com/watch?v=BIUeapPV_H0)