Hi Thomas, sorry for not responding sooner.
On Wed Jan 7, 2026 at 1:19 PM GMT, Thomas Lange wrote:
one line is great, but still we have to adjust it every year.
I would like to have some more generic rule, maybe like this:
RewriteCond %{REQUEST_URI} ^/(News(/weekly)?/[0-9]{4})/(.*)$ [NC]
RewriteCond /path/to/root/%1 !-d
RewriteRule ^/(News.*)$ https://chronicles.debian.org/www/$1 [R=301,L]
It would be awesome if you can test if this would work.
It would reduce some work, yes; it would introduce some small risk (the
rule is more complex and relies upon on-disk state); there would be a
(mostly) one-off cost to write and test it; it would delegate more of
the HTTP error-handling from www to chronicles: specifically, if a path
was never valid, right now www will respond with 404 (etc), but after
the proposed change, it would redirect to chronicles, and so chronicles
would gain more responsibility for knowing what the correct response
should be.
My feeling is the limited reduction in work does not provide sufficient
benefit to outweigh the other concerns. Personally I am behind on fixing
some other problems with Chronicles already, so I'd rather apportion my
limited Debian time to that (and Wiki and packaging stuff); even though
it will likely be me paying the cost of keeping the existing rules up to
date.
Thanks,
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Jonathan Dowland
⢿⡄⠘⠷⠚⠋⠀ https://jmtd.net
⠈⠳⣄⠀⠀⠀⠀