How to Add llms.txt to the Root Directory in Shopify?

Topic summary

用户希望在 Shopify 商店根目录添加自定义 llms.txt 文件,使其可通过 https://mystore.com/llms.txt 访问,类似于 Shopify 原生处理 robots.txt 的方式。

核心问题:

  • 能否在 Shopify 平台根目录直接创建自定义 .txt 文件?
  • 不希望使用应用程序、第三方托管、Cloudflare 或重定向等解决方法

当前状态:

  • 用户确认收到了 Markit-Themes 的回复(具体内容未显示)
  • 推测 Shopify 目前不支持在根目录创建自定义 .txt 文件
  • 用户原本希望找到类似 robots.txt.liquid 模板的未公开方法

后续计划:

  • 如果严格必要,将考虑外部选项
  • 但希望避免为简单文件增加额外基础设施

问题尚未完全解决,讨论保持开放状态。

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

大家好,

我想将自定义 llms.txt 文件添加到我的 Shopify 商店的根目录,以便可以
通过以下方式访问它:

https://mystore.com/llms.txt

就像 Shopify 原生处理 robots.txt 一样。

有没有办法在Shopify 平台的根级别创建或公开这样的纯文本文件?

我并不想寻找使用应用程序、第三方托管、Cloudflare 或重定向的解决方法。
我只是想知道:我可以在 Shopify 商店的根目录中创建自定义 .txt 文件吗?如果可以,该如何创建?

提前感谢您的帮助!

Hi Markit-Themes,

Thanks for the clarification.

I figured that might be the case, but I was hoping there might be some undocumented or lesser-known method—something similar to how robots.txt is handled via the robots.txt.liquid template.

Since Shopify doesn’t currently support custom .txt files at the root, I’ll explore external options if it becomes strictly necessary, though I was trying to avoid adding more infrastructure for such a simple file.

Appreciate your response!

Best regards,
Mr_L