auto redirect

Punkychan

OSNN Addict
Joined
5 Jun 2002
Messages
247
I'm quite new in html codings but what I wanted to know is how to automatic redirect a website i.e. from my old url to a new one ?Thanks for any help.
 
Using a meta refresh should work :)...
Code:
<html>
 <head>
  <title>Site Moved</title>
  <META HTTP-EQUIV=Refresh CONTENT="5; URL=http://www.NEWSITE.com/">
 <head>
<body>
Page Moved!
<br>
You will be re-directed to <a href="http://www.NEWSITE.com/">NEWSITE</a> in 5 seconds.
</body>
</html>
 
Or a javascript re-direct ... but the user will need to hava javascript enabled for this to work, most people do, but not everyone ;)
Code:
<html>
 <head>
  <title>Site Moved!</title> 
 </head>
<body>
<script language="javascript" type="text/javascript">
setTimeout("window.location.replace('http://www.newsite.com');",5000);
</script>
Site Moved
<br>
You will be taken to <a href="http://www.newsite.com">newsite.com</a> in 5 seconds.
</body>
</html>
 
or u can use this

PHP:
<body onload="parent.location='http://www.wibble.com'">
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,623
Latest member
AndersonLo
Back