IndexNow shopify

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:

  1. Upload the API key file via Content > Files in Shopify admin
  2. Obtain the generated CDN URL (format: https://cdn.shopify.com/s/files/...)
  3. Convert it to use the custom domain (format: https://www.yourdomainname.com/cdn/shop/files/...)
  4. Create a redirect:
    • From: /keyfilename.txt (root level)
    • To: The custom domain CDN URL

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.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

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

  1. Add a file under Content > Files

  2. Get the url for that file
    https://cdn.shopify.com/s/files/1/0613/5804/7413/files/keyfilename7c4f50b98cd2d7410d08fa.txt?v=1744724680

  3. Change it to your domain
    https://www.yourdomainname.com/cdn/shop/files/keyfilename7c4f50b98cd2d7410d08fa.txt

  4. 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)