Turn Your UiChemy 404 Log into Redirects with AI
Read UiChemy's log of missing pages, match each real one to the right page, and redirect it after your yes.
Prerequisites
A site connected to WPVibe running UiChemy 5.5 or newer (tested on 5.5.2, free) on WordPress 6.9 or newer, with an administrator account.
My WordPress site uses UiChemy. Find the addresses visitors hit that no longer exist and redirect the real ones to the right page, with my yes first.
1. Run discover_abilities with category uichemy-composer. If uichemy-composer/seo is not there, tell me that either UiChemy (5.5 or newer, on WordPress 6.9 or newer) is not installed and active, or its SEO is switched off under UiChemy, Settings, Features, and stop. If a UiChemy call is refused as not allowed, tell me to turn on the MCP server switch in the UiChemy dashboard, and stop. Every uichemy-composer ability except instructions and read-skill takes an action and its action_parameters as input, for example {"action": "get-structure", "action_parameters": {"post_id": 123}}. Before you use an action for the first time, run get_ability_info on its ability and read that action's parameters under meta.actions; do not guess them.
2. Run uichemy-composer/seo with action audit-site-seo. If a finding says another SEO plugin handles SEO, tell me which one, and that UiChemy's 404 log and redirects still run alongside it, so redirects in that plugin and in UiChemy can overlap. Ask me whether to go on.
3. Run uichemy-composer/seo with action list-site-settings. If settings.redirects.redirects_enabled is false, tell me UiChemy's redirects are switched off in its SEO settings, so nothing is logged or redirected, and stop. If settings.redirects.record_404 is false, tell me 404 logging is off there, and stop. Then run action list-404s and action list-redirects with per_page 100. If WPVibe says a response was cut, tell me how many rows you saw and work from those. If the log is empty, tell me UiChemy only logs from when it was installed and to ask again in a week, and stop.
4. Set aside bot noise: login and admin probes (wp-login, xmlrpc, wp-admin), .env, .git and other files a site does not serve, script and image paths, and random strings. List what you set aside in one line.
5. For each real address, find the best page: run rest_api GET /wp/v2/search with words from the address (if two words find nothing, try each word on its own), and use only pages that exist and are published. Skip any address that already has a redirect: run list-redirects with search set to the address, and skip it only if a row's source is exactly that address; if that row's status is false, tell me the redirect exists but is off. The log keeps an address after a page appears there, so check each one is still missing: run rest_api GET /wp/v2/pages and GET /wp/v2/posts with slug set to the address's last part; if either returns a published item, leave the address out and tell me it works now. If nothing fits, say so and leave that address out; never send an address to the home page just to clear it.
6. Show me a table: the old address, how many hits, the page you would send it to, and why. Wait for my yes, and for any changes I make.
7. For each one I approve, run uichemy-composer/seo with action add-redirect, source the old address as a path (for example /old-page), target the new page's path, type 301. If a result has warnings, tell me what they say. If a warning says the source is a working page, switch that redirect off at once with action update-redirect, its id and status false, and tell me.
8. Run list-redirects and list-404s again, confirm each new redirect is there and on, and that its address has left the log. Then list each redirect you added (old address, new page, id) so I can test one. Change nothing else.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Turn Your UiChemy 404 Log into Redirects with AI” recipe from the WPVibe cookbook on my connected site.
Links in old emails, social posts and other sites keep pointing at pages you renamed or removed. Visitors land on page not found and leave, and nothing tells you it happened.
UiChemy’s SEO module logs the missing pages visitors hit (not images, scripts or common probes such as .env and .php files, and up to the latest 500). The AI reads that log, sets aside bot noise, finds the best page on your site for each real address, and shows you the list. Only after your yes does it add each redirect, and then it checks the addresses have left the log.
The log starts when UiChemy is installed, so a new install may have nothing yet: ask again in a week. UiChemy keeps logging and redirecting even when another SEO plugin such as Yoast handles your titles, so keep redirects in one place. For a site without UiChemy, use this recipe.
Outcome
Each real missing address with a good match redirects to the right page, and you know which ones have none.