Redirecting Help ASAP

liunx

Guest
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<!--content-->This will forward you to <!-- m --><a class="postlink" href="http://www.yoursite.com">http://www.yoursite.com</a><!-- m --> after 5 seconds.<br />
<br />
<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.<br />
<br />
<body><br />
Our address has changed to <!-- m --><a class="postlink" href="http://www.yoursite.com">http://www.yoursite.com</a><!-- m -->! If you aren't automatically forwarded in 5 seconds, click <a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.yoursite.com">here</a><br />
</body><!--content-->You could also use JavaScript to create an instant redirect script.<br />
<br />
<body onLoad="self.location.href='http://www.webdeveloper.com/forum/archive/index.php/newpage.html';"><br />
<br />
Or you could do:<br />
<br />
function redirect() {<br />
self.location.href = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"newpage.html";<br />
}<br />
window.SetTimeOut("redirect()", 50); // 50 = number of milliseconds<br />
<br />
<body onLoad="redirect();"><!--content-->Since there is an HTML alternative, why use JavaScript? It will fail for one in ten people...<!--content-->Thank You Am I able to put it in my index page or home page....in body!!THankyou Again<!--content-->You should put pyro's example in the <head> section. My example can go in the head section.<!--content-->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://www.webdeveloper.com/forum/archive/index.php/"http://new home page;"><!--content--><html><br />
<head><br />
<meta http-equiv="refresh" content="5; url=http://www.yoursite.com"><br />
</head><br />
<br />
There was a little typo in the code. Sorry. It should work now. I also fixed it in the other one.<!--content-->
 
Back
Top