mh348 Expert Member Joined Jun 2, 2006 Messages 4,229 Reaction score 41 Location NW, SA Oct 9, 2006 #1 Does any have a basic redirection script in html (???) or php for me to use.
G Globetrotter Expert Member Joined Jul 4, 2005 Messages 1,174 Reaction score 0 Location Cape Town, South Africa Oct 9, 2006 #2 HTML redirection - add this between the <HEAD> and </HEAD> tag of the page: <meta http-equiv="refresh" content="0; url=http://www.yournewaddress.com"> PHP redirection - add to top of page: <? $URL="http://www.yournewaddress.com"; header ("Location: $URL"); ?> Javascript redirection: <HEAD> <SCRIPT language="JavaScript"> <!-- window.location="http://www.yournewaddress.com"; //--> </SCRIPT> </HEAD> Last edited: Oct 9, 2006
HTML redirection - add this between the <HEAD> and </HEAD> tag of the page: <meta http-equiv="refresh" content="0; url=http://www.yournewaddress.com"> PHP redirection - add to top of page: <? $URL="http://www.yournewaddress.com"; header ("Location: $URL"); ?> Javascript redirection: <HEAD> <SCRIPT language="JavaScript"> <!-- window.location="http://www.yournewaddress.com"; //--> </SCRIPT> </HEAD>
mh348 Expert Member Joined Jun 2, 2006 Messages 4,229 Reaction score 41 Location NW, SA Oct 9, 2006 #3 Thanks, It was just what I was looking for and it works great !