Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Saz
    Saz is offline
    Regular Coder
    Join Date
    Jun 2005
    Posts
    277
    Thanks
    5
    Thanked 0 Times in 0 Posts

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

    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 ?

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

    Saz.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Try
    Code:
    RewriteRule ^folderone/foldertwo/image.jpg$ /folderone/foldertwo/image.gif [R=301,L]
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    Saz (08-29-2009)

  • #3
    Saz
    Saz is offline
    Regular Coder
    Join Date
    Jun 2005
    Posts
    277
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Thumbs up

    Many thanks for that quick and helpful reply. It solved the problem straight away.



  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •