> The answer:
>
> RewriteCond %{REQUEST_URI} ^/id/(.*)
> RewriteCond ${ids:%1} !^$
> RewriteRule ^/id/(.*)$ ${ids:$1} [R=301]
> It's a bit filthy that the first RewriteCond and the pattern in the
> RewriteRule are duplicated, but I don't know if there's a way to improve
> that.
Maybe some roo
(In the course of writing this e-mail I worked out the answer, but I
thought I'd post it anyway, for future hapless rewriters such as myself.)
I have a website whose URLs often include an identifier for the
underlying database record that powers the page.
Simplified example for illustra