(rewrite
    (short-url '/articles/*')
    (reply 301 (& '/news/' (# id-from doc-name) '/' query-string))
)
(@ id-from str .article-id +-
    ([! '*/'] str >
        (! str '*/articles/^[0-9]/*' .article-id)
    >
        (! str '*/articles/^[0-9]' .article-id)
    )
)