RU Русская версия

IndexNow and llms-full.txt in MODX 3

A practical setup for a bilingual site. When an editor changes a URL, the search service receives both addresses and the text export follows the published site.

  • MODX 3platform
  • ZIPplugin and source
  • 3 minread

Published by Sergey Polyakov

What happens when a page changes

Suppose you move a service page and update its translation. A crawler needs to discover the new address, revisit the old one and read the revised text. The sitemap lists current pages. IndexNow tells participating search engines which addresses changed. A public llms-full.txt lets readers retrieve the main text in both languages in one request.

Start with crawlable, indexable pages that answer real questions. Google applies its usual Search requirements to AI features and says that it does not require a special AI text file. For ChatGPT search, check that OAI-SearchBot can access the content. Whether an answer cites your page also depends on how well it addresses the question. Google Search guidance · OpenAI crawler documentation.

How the MODX plugin works

psDiscovery listens for resource saves, publication, unpublication, deletion, restoration and sorting. It writes an event marker outside the web root. The editor can carry on while a scheduled PHP worker compares the sitemap with its previous snapshot, rebuilds the text export and submits changed URLs in a batch.

A new page enters the batch when it appears in the sitemap. A move submits both the old and new addresses. Unpublishing sends the old URL and removes its section from the export. The first run establishes a baseline. A daily reread also catches changes to shared templates. IndexNow protocol.

Install the plugin and schedule the worker

Download psDiscovery 1.0.0 for MODX 3, ZIP with source and English and Russian instructions.

  1. Check that /sitemap.xml serves a urlset listing final HTTPS URLs, including each translation. Each page needs a <main> element containing its primary text. This release uses PHP 8.2+, cURL, DOM, SimpleXML and mbstring.
  2. Place the IndexNow ownership file in the web root. The name is the key followed by .txt, and its contents are the same key. Check that its public URL returns HTTP 200. You can reuse an existing valid file.
  3. Extract the ZIP into core/components/psdiscovery/. Keep the core directory inaccessible over HTTP. PHP and cron need access to state and permission to replace the export atomically in the web root. Back up the existing export and the sitemap resource content. For a pdoSitemap resource the installer disables its separate cache so that an old URL does not linger after a move.
  4. Try it on a copy first. The stand mode reads the local site at http://127.0.0.1 inside the environment and logs previews locally. On production, use live, your canonical domain and the absolute path to the site's config.core.php. Run these commands from the plugin directory.
php install.php live https://shop.example /path/to/webroot/config.core.php
php worker.php

After the first successful run, add the following entry to cron using the actual absolute paths. The scheduled user and MODX must share access to the state directory.

*/5 * * * * /usr/bin/php /path/to/core/components/psdiscovery/worker.php >> /path/to/core/components/psdiscovery/state/worker.log 2>&1

Read the response log

Open state/indexnow-YYYY-MM.jsonl. Each line records one attempt with its UTC time, mode, URLs, HTTP status, a response excerpt and retry delay. In live mode, 200 confirms receipt. A 202 means the service accepted the batch and is still validating the key. For 403, check the public key file. For 422, check the hostname and URL format. A 429 leaves the URLs queued until the retry delay expires. Network failures and 5xx responses are retried too. Keep the logs private.

Verify both languages and a URL change

Publish a test page and a translation on staging. Run the worker and find both URLs in /llms-full.txt. Edit a sentence and check the actual export. Then rename the page and unpublish it. Compare the sitemap, export and response log at each step. Include both homepages in your checks: a build that enumerates only internal pages can miss them.

On the studio site, the first production export matched all 137 sitemap addresses: 69 Russian and 68 English pages. The IndexNow endpoint returned HTTP 200 for the batch. To measure subsequent indexing, check individual URLs in webmaster tools. For citations in Yandex Alice, use its separate visibility report. Alice AI visibility in Yandex Webmaster.

More articles

Step-by-step guides: domain, hosting, email, maps, and MODX setup.

All articles

Let’s talk

We can help check your sitemap, automate publication updates and interpret IndexNow responses.

  • Emailinfo@studiops.ru
  • Messaging app
  • OfficeBalashikha, Moscow Region, Russia
    Mon–Fri, 8 a.m.–5 p.m. Moscow time (UTC+3)
What can we help with?