AddType application/x-httpd-php .png

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

RewriteRule ^rank/(.+).png img.png?id=$1

