I;m using the following code to redirect images to a php page so user can't see the actual image path, currently images are in mysite.com/var/fol/img/image.jpg path but I want to redirect them all to mysite.com/img2.php?name=image.jpg on img2.php file where I'll get the image name as variable and make another redirection to a specific URL.
The problem all images are not showing now, where redirection si working properly!
Can anybody help me?
HTML:
Options +FollowSymLinks -MultiViews
HTML:
RewriteEngine On
HTML:
RewriteRule ^var/fol/img/(.*)\.(jpg|jpeg|gif|png|bmp)$ img2.php?name=$1 [NC]
The problem all images are not showing now, where redirection si working properly!
Can anybody help me?