Redirecting favicon.ico in the Error 404 handler?

B

Bill

I want to add a favicon.ico to one of my websites. Because this is a large
site, with two domains sharing an IP, I want to be able to redirect the
favicon .ICO file from my VBScript Error 404 file (depending upon the domain
name). Anybody have directions for doing this?


In my Error 404 file, I can place this is the partocilar domain secitons"
 
B

Bill

Andrew Urquhart said:
*Bill* wrote in microsoft.public.inetserver.asp.general:

You could ADODB stream it, but you might find that the following is
sufficient (as well as faster and more efficient):

Response.ContentType = "image/x-icon"
Server.Transfer("/images/myFavicon.ico")
Response.End()
--
Andrew Urquhart
- FAQ: http://www.aspfaq.com
- Archive: http://tinyurl.com/38kzx (Google Groups)
- Contact me: http://andrewu.co.uk/contact/

THANKS, Andrew! I got that to work, except for the Server.Transfer
statement... I had to do:

Server.Transfer("myFavicon.ico")

Isn't Server.Transfer supposed to be a path, and not a relative URL?

Bill.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top