Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect to external

Status
Not open for further replies.

drublic1019

IS-IT--Management
Sep 28, 2005
46
US
We have just moved our website from internal hosting to external hostings and I was wondering if I could redirect clients whose DNS records have not updated to the new external IP of our website.

thx
 
The easiest way to do this is by using a simple redirection page on your old web server. For example, you could put this into the default index page:

Code:
<%
     Dim strURL
     strURL = "[URL unfurl="true"]http://MyNewLocation"[/URL]
     Response.Redirect strURL
%>

If you don't have ASP, you can use HTML as well:

Code:
<head> 
<script language="JavaScript">
<!--
window.location="[URL unfurl="true"]http://MyNewLocation";[/URL]
//-->
</script>
<head>

I hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top