473,396 Members | 2,011 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,396 software developers and data experts.

How to redirect whole web site?

hb
Hi,

I have web site written in C# using Asp.Net. I need to move it from server1
to server2.
Since there is a delay from the moment I send change request to domain
registrar for
new IP to the moment the change takes place, I need to redirect all requests
from server1
to server2 using new IP.

Is there an easy way to do this? (like some code in web.config or
global.asax)

Thank you

hb
Nov 18 '05 #1
2 1299
Why can't you just keep the website running in two places for the 24 hour wait? Other than, hmm, you could put a Response.Redirect(http://my.newurl.com/) in Session_Start. Or if you really wanted to do it right, you could change your router around to forward all requests to "oldIP" ip at port 80 to "newIP".

--Michael

"hb" <ho****@goodoffices.com> wrote in message news:uQ**************@tk2msftngp13.phx.gbl...
Hi,

I have web site written in C# using Asp.Net. I need to move it from server1
to server2.
Since there is a delay from the moment I send change request to domain
registrar for
new IP to the moment the change takes place, I need to redirect all requests
from server1
to server2 using new IP.

Is there an easy way to do this? (like some code in web.config or
global.asax)

Thank you

hb

Nov 18 '05 #2
hb
Michael,

It works. Thank you!

hb
"Raterus" <ra*****@spam.org> wrote in message
news:OV**************@tk2msftngp13.phx.gbl...
Why can't you just keep the website running in two places for the 24 hour
wait? Other than, hmm, you could put a
Response.Redirect(http://my.newurl.com/) in Session_Start. Or if you really
wanted to do it right, you could change your router around to forward all
requests to "oldIP" ip at port 80 to "newIP".

--Michael

"hb" <ho****@goodoffices.com> wrote in message
news:uQ**************@tk2msftngp13.phx.gbl...
Hi,

I have web site written in C# using Asp.Net. I need to move it from server1 to server2.
Since there is a delay from the moment I send change request to domain
registrar for
new IP to the moment the change takes place, I need to redirect all requests from server1
to server2 using new IP.

Is there an easy way to do this? (like some code in web.config or
global.asax)

Thank you

hb

Nov 18 '05 #3

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

Similar topics

3
by: Pooja Renukdas | last post by:
Hello, I have this web site where only two pages have to be secure pages and I need to call them using https, but since I have my development server and my production web server, I dont want to...
2
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...
13
by: Stephen Kay | last post by:
Is there a way to redirect every single page on an existing web site through a php function? In other words, say I have a whole functional HTML web site, never written to use any php. Now I...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
21
by: John | last post by:
Hi, I updated a site and changed the file extensions from .html to .php. Now i noticed that the google does find the old .html pages but since they're not there anymore... they can't be found....
5
by: =?Utf-8?B?d2ViZ3V5QGNvbW11bml0eS5ub3NwYW0=?= | last post by:
We have been running into some problems where using Response.Redirect causes the page to hang and it never actually redirects. Here's the scenario: User opens the page, selects an item from the...
2
by: one.1more | last post by:
Hello, I have the following code but its not working. i want my site to be accessible only if the visitors resolution is 1024 x 768 or higher and only if they are using internet explorer. the...
5
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
I am trying to create ASPX code which will allow me to redirect a user to another site with POST data. I figure that the best way to do this is with JavaScript to the client. Here's what I'm doing:...
56
by: UKuser | last post by:
Hi, I'm not sure if this can be done as I've searched the web and this forum. I am using an online merchant provider and I must post certain variables to their webforms through a form on my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.