# Redirect display of files to a PHP
RewriteEngine On
RewriteRule ^(.+)\.jpg$ index.php?file=$1\.jpg [L]
RewriteRule ^(.+)\.gif$ index.php?file=$1\.gif [L]
RewriteRule ^(.+)\.png$ index.php?file=$1\.png [L]
RewriteRule ^(.+)\.bmp$ index.php?file=$1\.bmp [L]
RewriteRule ^(.+)\.swf$ index.php?file=$1\.swf [L]
RewriteRule ^(.+)\.png$ index.php?file=$1\.png [L]
RewriteRule ^(.+)\.pdf$ index.php?file=$1\.pdf [L]
RewriteRule ^(.+)\.zip$ index.php?file=$1\.zip [L]
