404 Error -> Image Substitution

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rmk

    404 Error -> Image Substitution

    Hi,

    I have a 404 error handler that can redirect when a url is mistyped or when
    a page has moved.
    I would like to have the same control for images. For example:
    photo/1234-Kitchen.jpg is now located at:
    photo/1234/Kitchen.jpg

    If the image is referenced by the wrong url the familar image icon with the
    'X' in it appears.
    I can trap the error in my 404 handler and figure out the correct location
    of the image,
    but I have been unable to send the correct image to the calling browser.

    Thanks in advance for any help.

    Rick Kerbel



  • Chung Leong

    #2
    Re: 404 Error -> Image Substitution


    "rmk" <rick@kerbel.co m> wrote in message news:ZGhbe.4726 $yc.3996@trnddc 07...[color=blue]
    > Hi,
    >
    > I have a 404 error handler that can redirect when a url is mistyped or[/color]
    when[color=blue]
    > a page has moved.
    > I would like to have the same control for images. For example:
    > photo/1234-Kitchen.jpg is now located at:
    > photo/1234/Kitchen.jpg
    >
    > If the image is referenced by the wrong url the familar image icon with[/color]
    the[color=blue]
    > 'X' in it appears.
    > I can trap the error in my 404 handler and figure out the correct location
    > of the image,
    > but I have been unable to send the correct image to the calling browser.
    >
    > Thanks in advance for any help.
    >
    > Rick Kerbel
    >
    >
    >[/color]

    It's called "Apache rewrite". Just Google it,


    Comment

    Working...