<Directory /home/www/icons>
 Options Indexes FollowSymLinks
 RewriteEngine On
 RewriteBase /icons
 RewriteRule ^(.+\.gif)$   $1.png
</Directory>