Redirecting on Failed Image 404

Discussion in 'ASP General' started by Keith, Mar 9, 2005.

  1. Keith

    Keith Guest

    I have some images on a domain (http://www.domain.com/image1.jpg for
    example).

    I want to create a sub-domain so that the images will be
    http://images.domain.com/image1.jpg for example.

    Once I move the images to the sub-domain any requests to the old locations
    will result in a 404.

    Is there any way to redirect all failed image requests to the new location?
    Maybe by modifying the 404 page?
     
    Keith, Mar 9, 2005
    #1
    1. Advertising

  2. Sure, some techniques here on modifying the 404 handler to do custom things
    (e.g. based on file extension):

    http://www.aspfaq.com/2162

    --
    http://www.aspfaq.com/
    (Reverse address to reply.)




    "Keith" <@.> wrote in message news:...
    > I have some images on a domain (http://www.domain.com/image1.jpg for
    > example).
    >
    > I want to create a sub-domain so that the images will be
    > http://images.domain.com/image1.jpg for example.
    >
    > Once I move the images to the sub-domain any requests to the old locations
    > will result in a 404.
    >
    > Is there any way to redirect all failed image requests to the new

    location?
    > Maybe by modifying the 404 page?
    >
    >
     
    Aaron [SQL Server MVP], Mar 9, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nobody

    Redirecting to the default 404 page

    Nobody, Feb 3, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    3,972
    Nobody
    Feb 4, 2004
  2. Jonathan Folland
    Replies:
    2
    Views:
    1,639
    Jonathan Folland
    Mar 17, 2005
  3. Corona

    Redirecting a 404 error

    Corona, Jun 23, 2005, in forum: HTML
    Replies:
    6
    Views:
    470
    Corona
    Jun 26, 2005
  4. sck10
    Replies:
    6
    Views:
    919
    sck10
    Sep 1, 2006
  5. Bill
    Replies:
    2
    Views:
    260
Loading...

Share This Page