DocumentRoot /usr/local/apache2/htdocs
RewriteEngine On
RewriteMap rwmap prg:/usr/local/apache2/htdocs/rwmap.pl
RewriteRule ^/image/catalog/(.+)$ ${rwmap:$1} [PT,QSA]
Require all granted
Options Indexes FollowSymLinks ExecCGI
AllowOverride All
Require all granted
AddHandler cgi-script .pl