HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1253
Number of posts: 3360

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Redirecting to another page? Posted by Mick on 15 Feb 2001 at 4:23 PM
I have a new Server with a new domain to host my web site, but still have an old Server with its own domain, which still gets hits.

Is there a way I can put a page that auto directs clients to the new site?

Another problem is that the old server doesn’t support ASP, and to get them to host a CGI is a nightmare. Can it be done in HTML?

Your help and ideas is most appreciated.

Cheers.


Edit Report
Re: Redirecting to another page? Posted by iDaZe on 16 Feb 2001 at 6:06 AM
It can be done with a simple JavaScript, just use tis as your welcome page:

<html>
<head>
<script language="JavaScript">
function MoveAlong() {
self.parent.location="http://www.mynewpage.com";
}
</script>
</head>
<body onload="MoveAlong()">
<div align="center">
This page has moved<br>
if you don't get redirected,<br>
<a href="http://www.mynewpage.com" target="_top">click here</a>
</div>
</body>
</html>

Edit Report
The plain HTML way... Posted by Jonathan on 16 Feb 2001 at 2:21 PM
Hi,

You can also do this with plain HTML using the META Refresh thing. You just put this somewhere between the <head> and </head> part of your page:-

<meta HTTP-EQUIV="refresh" content="5; URL=http://www.newsite.com/">

Replace 5 with the number of seconds to wait before re-directing.

Hope this helps!

Jonathan

URL:http://www.downloadcounter.com/




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.