Search by

klxm / routes

skerbis

Extends yrewrite for REDAXO 6: GEO (llms.txt, Markdown versions, AI crawlers), shortlinks, redirects with wildcards and 410, 404 log, IndexNow, advice for editors and one login for all domains

Package info

github.com/KLXM/routes

Homepage

Type:redaxo-addon

pkg:composer/klxm/routes

Statistics

Installs: 6

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0-beta.13 2026-11-30 21:00 UTC

README

REDAXO 6 AddOn :: adds to yrewrite what is missing there. Compatible with fluid, but runs in every REDAXO 6 project with yrewrite 3.

Addresses, domains, SEO fields and sitemap.xml stay with yrewrite. routes adds:

Feature What it does
llms.txt overview of the domain for AI assistants, optionally llms-full.txt with the texts
Markdown every page as /page.md or with Accept: text/markdown, announced in the page head
AI crawlers per domain: allow all, block training only, block all (in robots.txt)
Link previews allow previews when sharing even if the domain is closed for search engines
Redirects with wildcards (/old/* → /new/*), 301/302/303/307/308/410, expiry date, CSV import and export
404 log the last 200 addresses with count, no IP, no referrer
Shortlinks wished address or code, with clicks and expiry date
IndexNow report changes to Bing, Yandex & co. (cronjob)
SEO & AI advice for editors with a score, per page and for the domain
One login log in to the backend once, logged in on all domains where it is switched on

With fluid plus, “SEO & AI”, shortlinks and switching the domain are also in the editor on the website.

Settings per domain

SEO & AI in the editor

Installation

composer require klxm/routes
php bin/console migrate

yrewrite 3 is installed along; create the domain there and set the .htaccess.

Settings

In the backend under yrewrite extras (routes) → Domains, or in code. Code wins, the backend then only shows it:

use Klxm\Routes\Attribute\AsRoutesDomain;
use Klxm\Routes\DomainDefinition;
use Klxm\Routes\DomainSettings;

#[AsRoutesDomain('www.example.org')]      // '*' = all domains without a class of their own
final class MainDomain extends DomainDefinition
{
    public function settings(DomainSettings $s): void
    {
        $s->ai = 'training';      // allow | training | all
        $s->llmsFull = true;
        $s->sso = true;
    }
}

Redirects from code:

#[AsRoutesRedirects('relaunch-2026')]     // second parameter: one domain only
final class Relaunch extends RedirectDefinition
{
    public function rules(): iterable
    {
        yield ['source' => '/old/contact.html', 'target' => 'redaxo://12'];
        yield ['source' => '/blog/*', 'target' => '/news/*', 'code' => 308];
        yield ['source' => '/campaign', 'code' => 410];
    }
}

Redirects only apply if yrewrite finds no page and no forward of its own. Further targets (shop://…) are registered by a class with #[AsRoutesLinkScheme]. More in docs/entwickler.md (German).