Apache で Action を利用した mod_rewrite の代替

mod_rewrite を使えない環境でのパス変換の話。
.htaccess サンプル

<FilesMatch "^[0-9]{5}$">
ForceType text/html
Action text/html /cgi-bin/read.cgi
</FilesMatch>

Action を利用した mod_rewrite の代替

さくらのレンタルサーバでは mod_rewrite は使えないが Action は使えるみたい。