From 7074a758829364b1b1b10df44a0a09976322008f Mon Sep 17 00:00:00 2001 From: Jordi Kroon Date: Mon, 23 Nov 2026 21:29:34 +0100 Subject: [PATCH 1/2] Mark extension redirects with manual="extensions" attribute --- redirects.xml | 63 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 43 insertions(+), 20 deletions(-) diff --git a/redirects.xml b/redirects.xml index 7fd0a79528b2..37d7daa9d602 100644 --- a/redirects.xml +++ b/redirects.xml @@ -21,6 +21,13 @@ Attribute of a group: serve="in-place" serve the target page at the requested URL instead of redirecting (default: 301) + + Attribute of a redirect: + manual="extensions" the target is a page of the extensions manual + (php/doc-extensions): -> /manual/extensions/{to}.php + A page that moved there and kept its name needs no + entry, php.net redirects to it when it only exists + in that manual. --> @@ -80,6 +87,20 @@ + + + + + + + + + + + + + @@ -96,7 +117,6 @@ - @@ -412,7 +432,6 @@ - @@ -512,6 +531,10 @@ + + + + @@ -620,17 +643,17 @@ - - - - - - - - - - - + + + + + + + + + + + @@ -766,13 +789,13 @@ - - - - - - - + + + + + + + From e5f6d4962a69574eb9a863622c635de2df36ee38 Mon Sep 17 00:00:00 2001 From: Jordi Kroon Date: Mon, 23 Nov 2026 21:32:40 +0100 Subject: [PATCH 2/2] Manual could be any manual --- redirects.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/redirects.xml b/redirects.xml index 37d7daa9d602..5c329092b2b3 100644 --- a/redirects.xml +++ b/redirects.xml @@ -23,11 +23,12 @@ instead of redirecting (default: 301) Attribute of a redirect: - manual="extensions" the target is a page of the extensions manual - (php/doc-extensions): -> /manual/extensions/{to}.php - A page that moved there and kept its name needs no - entry, php.net redirects to it when it only exists - in that manual. + manual="{manual}" the target is a page of another manual + -> /manual/{manual}/{to}.php + "extensions" is the extensions manual + (php/doc-extensions). A page that moved there and + kept its name needs no entry, php.net redirects to + it when it only exists in that manual. -->