Ray
Tue Jan 06 10:08:17 CST 2004
Create a custom 404 page for your site.
(
http://www.aspfaq.com/show.asp?id=2162)
You could probably use code as so:
<%
Const SITE1="www.site1.com"
Const SIT22="www.size2.com"
Dim sSite
sSite = LCase(Request.ServerVariables("SERVER_NAME"))
If Not Left(sSite, 4) = "www." Then sSite = "www." & sSite
If sSite = SITE1 Then
Response.Write "That page wasn't found. Maybe try <a href=""
http://" &
SITE2 & REquest.ServerVariables("URL") & """>here</a>."
Else
Response.Write "That page wasn't found on this site either. Sorry about
that.
End If
%>
Ray at work
"Mona Syed" <msyed@jcpenney.com> wrote in message
news:%23h8Vv3G1DHA.560@TK2MSFTNGP11.phx.gbl...
>
> Hello,
>
> I have a 'primary' intranet website and a 'secondary' backup of this site
as
> well. I would like to programmatically have the effect that if the
> primary site is (page not found 404) not available, for it to access the
> secondary site or at least be able to add a message with (or instead of)
the
> 404 error dialog that the primary site is down and give the user a link to
> the alternative (secondary) site.
>
> Appreciate your help.
> --
> Best Regards,
> Mona Syed
>
>
>
>