Hello DSA team kindly applied the patch for Apache rewrite rules, and I've checked that it works as intended, at least with the examples provided in this bug report, plus the ones that Rebecca linked in the codesearch query.
One of the rules is to redirect: www.debian.org/doc/debian-policy/ch-whatever.html#oldsection -> www.debian.org/doc/debian-policy/#document-ch-whatever and maybe it's better to redirect in this way: www.debian.org/doc/debian-policy/ch-whatever.html#oldsection -> www.debian.org/doc/debian-policy/#oldsection At least I've checked with the links present in developers-reference (the ones that pointed Rebecca) and it works, since the "oldsection" anchors are in the form "s-section" and the sections inside chapters are named the same. But I'd like somebody from the Policy team to confirm (since they know better the schema used for naming anchors). Sean, if you prefer that we redirect to the chapter as we are doing now, feel free to close this bug. If you can confirm that all the ch-whatever.html#oldsection can be safely redirected to #oldsection (suppressing the substring of chapter), I would write a new patch for this rule in the Apache config. Cheers -- Laura Arjona Reina https://wiki.debian.org/LauraArjona