PDA

View Full Version : How do you do a rewrite for one image please ? (Nothing to do with hotlinking)


Saz
08-29-2009, 12:29 AM
Done some Googling and searched here, but can't seem to find the rewrite rule for redirecting one image to another - tried a few different combinations, including the code below, but none have worked - can anyone help please ?

RewriteRule ^http://www.websitename/folderone/foldertwo/image.jpg http://www.websitename/folderone/foldertwo/image.gif/ [R=301,L]

Any help much appreciated.

Saz.

abduraooft
08-29-2009, 07:57 AM
Try RewriteRule ^folderone/foldertwo/image.jpg$ /folderone/foldertwo/image.gif [R=301,L]

Saz
08-29-2009, 01:03 PM
Many thanks for that quick and helpful reply. It solved the problem straight away.

:thumbsup: