stuayre
asked on
mod_rewrite image names
Hi,
is there a way to use mod_rewrite to change the name of my images.
for example i have <img src="/my_image_folder/imag ename.gif" >
but i would like <img src="/my_image_folder/anyt hing_i_lik e_here_(im g)_imagena me.gif">
but it would still bring up the same image as above. (I put (img) in a seperator)
is there a way?
cheers
Stu
is there a way to use mod_rewrite to change the name of my images.
for example i have <img src="/my_image_folder/imag
but i would like <img src="/my_image_folder/anyt
but it would still bring up the same image as above. (I put (img) in a seperator)
is there a way?
cheers
Stu
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
no answer
Put .htaccess file into my_image_folder/ (! ! !)
RewriteEngine On
RewriteCond %{REQUEST_URI} !anything_you_like
RewriteRule (.+) anything_you_like_$1 [L]
It will rewrite any image access to anything You like, except the image have alread anytning You like in its name