.Htaccess redirect help required

aukint

Junior Member
Joined
Jul 14, 2013
Messages
133
Reaction score
13
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.

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?
 
Can somebody help me?
 
I am also looking for the informative post.
 
Did u tried Like that..

Options +FollowSymLinks

RewriteEngine On
RewriteRule ^images/([a-zA-Z0-9]+).png$ images/$1.gif
 
Back
Top