话题详情

返回列表
qtline 铁杆 4个月前
你好,llms-full.txt和llms.txt可以正常生成并访问,
但是/content/plugins/llms_generator/md_handler.php?id=12 和/post-123.html.md 都不能输出 Markdown 返回404
一键生成 llms.txt 和llms-full.txt 文件,辅助 AI 理解网站(如 ChatGPT、Perplexity、Claude )等。
回复 (4)

我是贝东 铁杆荣誉 4个月前

没有设置伪静态导致的问题,请设置一下伪静态。

qtline 铁杆 4个月前

按照说明设置了伪静态的
rewrite ^/post-([0-9]+)\.html\.md$ /content/plugins/llms_generator/md_handler.php?id=$1 last;
rewrite ^/post-([0-9]+)\.md$ /content/plugins/llms_generator/md_handler.php?id=$1 last;

我是贝东 铁杆荣誉 4个月前

在我主页找到我的联系方式截图我看看

qtline 铁杆 4个月前

/content/plugins/llms_generator/md_handler.php?id=123 这地址不能输出 Markdown
返回信息:Direct access to md_handler.php is disabled. Please use /post-{id}.html.md instead.