AddType application/x-httpd-php .png

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.+)/(.+)\.png ../img.png?id=$1&type=1&msg=$2


