Suppose http://example.co.cc/ was your old website. But now you
register a TK domain is http://example.tk/ and replace old to new. At
that moment what should you do?
Yes, Some people will make a notice board on home page of old site by HTML. Now a days it is easier for us by using javascript. I give both HTML and Javascript.
Old style:
New style:
NOTE: Replace your URL to the red color.
Yes, Some people will make a notice board on home page of old site by HTML. Now a days it is easier for us by using javascript. I give both HTML and Javascript.
Old style:
<html>
<head>
<title>We have moved</title>
</head>
<body>
<h1>We have moved</h1>
<p>please go to <a href=”http://www.example.tk“>www.example.tk</a> or <a href=”http://www.example.tk“>click here </a></p>
</body>
</html>
<head>
<title>We have moved</title>
</head>
<body>
<h1>We have moved</h1>
<p>please go to <a href=”http://www.example.tk“>www.example.tk</a> or <a href=”http://www.example.tk“>click here </a></p>
</body>
</html>
New style:
<html>
<head>
<title>redirect</title>
<body onload=”window.location.href=’http://www.example.tk‘”>
</body>
</html>
<head>
<title>redirect</title>
<body onload=”window.location.href=’http://www.example.tk‘”>
</body>
</html>
0 comments:
Post a Comment