Click to See Complete Forum and Search --> : Redirecting Help ASAP
gypsee
01-07-2003, 07:58 PM
Please Help I am tring to move my site am very new I am changing my server to a host it is posted but I wanted to redirect anyone that comes through old server to new host.....I think its a redirection script I need...Please any help appreciated....Thankyou Gypsee
This will forward you to http://www.yoursite.com after 5 seconds.
<meta http-equiv="refresh" content="5; url=http://www.yoursite.com"> Also, always a good idea to do something like this, just incase the above doesn't work.
<body>
Our address has changed to http://www.yoursite.com! If you aren't automatically forwarded in 5 seconds, click <a href="http://www.yoursite.com">here</a>
</body>
Zach Elfers
01-07-2003, 08:09 PM
You could also use JavaScript to create an instant redirect script.
<body onLoad="self.location.href='newpage.html';">
Or you could do:
function redirect() {
self.location.href = "newpage.html";
}
window.SetTimeOut("redirect()", 50); // 50 = number of milliseconds
<body onLoad="redirect();">
Since there is an HTML alternative, why use JavaScript? It will fail for one in ten people...
gypsee
01-07-2003, 08:23 PM
Thank You Am I able to put it in my index page or home page....in body!!THankyou Again
Zach Elfers
01-07-2003, 08:27 PM
You should put pyro's example in the <head> section. My example can go in the head section.
gypsee
01-07-2003, 08:57 PM
I tried Both into head tag on index page None seemed to work Will Try again IM very New to this But I think this is the way Im supposed to put it in head <body onLoad="self.location.href="http://new home page;">
<html>
<head>
<meta http-equiv="refresh" content="5; url=http://www.yoursite.com">
</head>
There was a little typo in the code. Sorry. It should work now. I also fixed it in the other one.