473,770 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

redirect all pages from domain B to a maintenance page on domain A

Hi all,

We have two sites hosted on different servers and we have many pages on
domain A which has many links(asp programs) to domain B.
My question is if domain B server is in trouble, what is the best way to
have all domain pages redirect to domain A? Right now I just have redirect
code in each program on domain B to redirect to a maintenance page on domain
A.
Can I just write on program to solve this issue?
Thanks.
--
Betty
Dec 24 '07 #1
6 2981
Hi Betty,

As for the page redirection, I think it may depend the error or failure on
domain B's page and how you can get noticed of and handle them. For
example, when user be linked to domain B pages(from domainA pages) and that
page occured error, how could you handle the error? If it is an expected
error, you may catch it in a certain scope, however, if it is an unhandled
exception, how could you detect it? In the latter case, it would be hard to
do the redirection, do you think so?

Also, for "domain B server" is in trouble, do you mean the server is down?
And what's the redirection behavior you want?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: =?Utf-8?B?YzY3NjIyOA= =?= <be***@newsgrou p.nospam>
Subject: redirect all pages from domain B to a maintenance page on domain A
Date: Sun, 23 Dec 2007 23:52:01 -0800

Hi all,

We have two sites hosted on different servers and we have many pages on
domain A which has many links(asp programs) to domain B.
My question is if domain B server is in trouble, what is the best way to
have all domain pages redirect to domain A? Right now I just have redirect
code in each program on domain B to redirect to a maintenance page on
domain
>A.
Can I just write on program to solve this issue?
Thanks.
--
Betty
Dec 24 '07 #2
Hi Steven,
I am sorry. I didn't make that clear. I mean the server B is down. If our
agents or brokers have direct links to our server B and I want all those
pages on server B will be redirected to domain A or I can just have a html on
server B state(in case of only IIS canot serve asp page or database is down)
that "visit us after XXX hours etc."

Thank you.
--
Betty
"Steven Cheng[MSFT]" wrote:
Hi Betty,

As for the page redirection, I think it may depend the error or failure on
domain B's page and how you can get noticed of and handle them. For
example, when user be linked to domain B pages(from domainA pages) and that
page occured error, how could you handle the error? If it is an expected
error, you may catch it in a certain scope, however, if it is an unhandled
exception, how could you detect it? In the latter case, it would be hard to
do the redirection, do you think so?

Also, for "domain B server" is in trouble, do you mean the server is down?
And what's the redirection behavior you want?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: =?Utf-8?B?YzY3NjIyOA= =?= <be***@newsgrou p.nospam>
Subject: redirect all pages from domain B to a maintenance page on domain A
Date: Sun, 23 Dec 2007 23:52:01 -0800

Hi all,

We have two sites hosted on different servers and we have many pages on
domain A which has many links(asp programs) to domain B.
My question is if domain B server is in trouble, what is the best way to
have all domain pages redirect to domain A? Right now I just have redirect
code in each program on domain B to redirect to a maintenance page on
domain
A.
Can I just write on program to solve this issue?
Thanks.
--
Betty

Dec 26 '07 #3
If the server is down, ASP cannot run at all.

The issue you have is outside of ASP
Dec 26 '07 #4
Hi Betty,

Thanks for the reply.

As Jon mentioned, if the IIS server get down(or even the entire server
down), it would be quite hard to do the automatic redirection. I think you
may implement a monitor/lookup service for those servers(constan tly ping to
check whether the certain servers are working correctly). Thus, you can get
the ponit when the server stop working.
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?YzY3NjIyOA= =?= <be***@newsgrou p.nospam>
References: <3C************ *************** *******@microso ft.com>
<K3************ **@TK2MSFTNGHUB 02.phx.gbl>
>Subject: RE: redirect all pages from domain B to a maintenance page on doma
Date: Wed, 26 Dec 2007 09:49:01 -0800
>
Hi Steven,
I am sorry. I didn't make that clear. I mean the server B is down. If our
agents or brokers have direct links to our server B and I want all those
pages on server B will be redirected to domain A or I can just have a html
on
>server B state(in case of only IIS canot serve asp page or database is
down)
>that "visit us after XXX hours etc."

Thank you.
--
Betty
"Steven Cheng[MSFT]" wrote:
>Hi Betty,

As for the page redirection, I think it may depend the error or failure
on
>domain B's page and how you can get noticed of and handle them. For
example, when user be linked to domain B pages(from domainA pages) and
that
>page occured error, how could you handle the error? If it is an expected
error, you may catch it in a certain scope, however, if it is an
unhandled
>exception, how could you detect it? In the latter case, it would be hard
to
>do the redirection, do you think so?

Also, for "domain B server" is in trouble, do you mean the server is
down?
>And what's the redirection behavior you want?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.
>>
--------------------
>From: =?Utf-8?B?YzY3NjIyOA= =?= <be***@newsgrou p.nospam>
Subject: redirect all pages from domain B to a maintenance page on
domain A
>Date: Sun, 23 Dec 2007 23:52:01 -0800

Hi all,

We have two sites hosted on different servers and we have many pages on
domain A which has many links(asp programs) to domain B.
My question is if domain B server is in trouble, what is the best way
to
>have all domain pages redirect to domain A? Right now I just have
redirect
>code in each program on domain B to redirect to a maintenance page on
domain
>A.
Can I just write on program to solve this issue?
Thanks.
--
Betty

Dec 31 '07 #5
Most ISPs have more than one Name Server specified.
Could the second NameServer point to the second server ??

This could deal with 'Server A' failure

Pete (Northolt UK)

c676228 wrote:
Hi all,

We have two sites hosted on different servers and we have many pages on
domain A which has many links(asp programs) to domain B.
My question is if domain B server is in trouble, what is the best way to
have all domain pages redirect to domain A? Right now I just have redirect
code in each program on domain B to redirect to a maintenance page on domain
A.
Can I just write on program to solve this issue?
Thanks.
--
Betty
Dec 31 '07 #6
Most registrations for a Web Site have more than one Name Server entries

If you made the second Name Server entry point to domain B
Would that not deal with Server A failure ??

Pete (Northolt UK)

c676228 wrote:
Hi all,

We have two sites hosted on different servers and we have many pages on
domain A which has many links(asp programs) to domain B.
My question is if domain B server is in trouble, what is the best way to
have all domain pages redirect to domain A? Right now I just have redirect
code in each program on domain B to redirect to a maintenance page on domain
A.
Can I just write on program to solve this issue?
Thanks.
--
Betty
Dec 31 '07 #7

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

Similar topics

9
13942
by: dm4714 | last post by:
Hello - we have an ecommerce application that needs to come down for maintenance. The application is normally only accessed via http://www.mydomain.com/virtualdir/aspfile.asp. I'm using W2K Advanced Server/SP4. I would like to create a generic HTML page that can easily be put on the IIS server to redirect all users that access any files on this domain to my maintenance page.
2
4494
by: FN | last post by:
I'm using User.Identity.IsAuthenticated on all my pages (from a base class), and redirecting to a login page if not authenticated. The problem is that some pages are in subfolders and others are not. Such as: www.domain.com/mustbeauth1.aspx > www.domain.com/login.aspx www.domain.com/folder/mustbeauth2.aspx > www.domain.com/login.aspx If I use Response.Redirect("login.aspx") the first one works, but the second doesn't. I thought I...
2
3845
by: WJ | last post by:
1. I have a website called "myWeb" resides under E:\SOS\myWeb.Net" folder in an IIS-6/Windows 2003 server. Its host-header is "myWeb.Net". 2. Default page is "Index.aspx". 3. In the same folder as above, there are two additional aspx pages called: page2.aspx and page2.1.aspx. 4. The "Index.aspx" calls "Page2.aspx" with the command "Response.Redirect("http://myWeb.Net/Page2.aspx"); This always works.
8
2491
by: Stimp | last post by:
I need to take my website offline for an hour or so while I perform some maintenance... is it possible to create a 'catch-all' redirect to a temporary page (i.e. something in Web.config or global.asax.vb) ? People access my site through several different pages, so I couldn't put a redirect on the homepage, and taking my server offline is out the question. Thanks, Peter
2
2845
by: Peter McEvoy | last post by:
Folks, I've been building a Webservice API for a contract that will be exposed to the internet at large. There are two endpoints, and each endpoint contains a number of webmethods. Every webmethod returns a returncode which indicates the level of success in performing the operation (as well as the actual results of the call in an "out" parameter) They have a requirement that when they want to perform maintenance on the backend system,...
1
2455
by: Alan Silver | last post by:
Hello, I have a page where site owners can see orders placed on their site. The path to this page is /dap/order.aspx, but for security reasons (as they will end up printing these pages and sending them to customers) I am trying to rewrite the path so the URL shown in the page footer is not a real one. I want to use an URL like http://www.domain.com/order123.aspx and have it rewritten to http://www.domain.com/dap/order.aspx?orderid=123
2
1689
by: Daves | last post by:
think the subject says it all, my domain www.domain.com now is running asp.net but still gets requests to asp pages which were there on the old server. Can I create some global http filter to redirect all .asp requests to the default.aspx page?
2
3659
by: =?ISO-8859-1?Q?Fran=E7ois_de_Dardel?= | last post by:
I am not sure if this is the proper forum, but I always found very helpful information here and I would like to have the advice of experts. Just before new year (end Dec 2006), my internet provided (noos.fr) had trouble with ftp, so that access to my web pages became very problematic, mostly impossible. After 2 months and many unanswered complaints, I decided to buy my own domain, subscribe with a different host and transfer all my files...
4
3366
by: Mike Gleason jr Couturier | last post by:
Hi, What's a clean way to redirect users on an information page while doing site maintenance... Can we do it with urlMappings !? (wildcard "*"?) Thanks
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.