473,385 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Redirecting on Failed Image 404

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?
Jul 22 '05 #1
1 1299
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:eh**************@TK2MSFTNGP09.phx.gbl...
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?

Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: amiro | last post by:
How do I redirect a non existing image link on my server to another image? On a page in "Server A", there's this tag: < img src="image_url_on_Server_B" > suppose I want to remove the image...
8
by: Morpheus | last post by:
I am trying to test a function that outputs text to the standard output, presumably using a cout call. I do not have access to the source, but need to test the output. Is this possible? I can...
0
by: cole007 | last post by:
Hi all, New to this forum so thought would start off with a query that has been causing me some problems. Trying to work with remote images using gd libraries and get the following message:...
1
by: edmundleungs | last post by:
In our veritas netbackup for DB2 on AIX, the backup could be done successfully and the backup image would be listed using bplist on the AIX client. I have made several backup image, but only one...
7
by: stephcsh | last post by:
Hi, My application is working fine on server A, which is using PHP 4.4.1. However, after it is copied over to server B, which is using PHP 4.4.6, I got several problems related to pdf and xml. ...
0
by: Ronald Sloot | last post by:
Hi, I use Response.Redirect(..) (ASP.NET 2.0) to go to a secure page of my test site. I use a SSL certificate created by SelfSSL. That works okay when I run it from a browser, but when I want...
116
by: dmoran21 | last post by:
Hi All, I am working on a program to take input from a txt file, do some calculations, and then output the results to another txt file. The program that I've written compiles fine for me, however,...
8
omerbutt
by: omerbutt | last post by:
hi there i a making a community page where i am editing the details for the communities added in the favourities of the user the, i am using html ajax javascript,php and mysql.Now the problem is that...
6
by: rpcchandu | last post by:
Hi Coders, I have to redirect from my server to the different server page by simulating the POST method submit from the Controller file, I tried using post_via_redirect, but could not succeed......
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.