Categories
World Wide Web

Redirect Halaman Web

Cara 1 HTML Menggunakan Frame

<HTML>
<HEAD>
<TITLE>SMS Online STISI Telkom</TITLE>
<meta name=”keywords” content=”sms,online,stisi,telkom”>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>SMS Online STISI Telkom</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<link rel=”shortcut icon” href=”http://stisitelkom.ac.id/images/favicon.ico” />
<style type=”text/css”>
<!–
body {
background-color: #333333;
background-image: url(images/bg.png);
background-repeat: repeat-x;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
–>
</style></head>
</HEAD>
<FRAMESET ROWS=”*,0″><FRAME SRC=”http://118.97.116.15/smsweb/” NORESIZE>

<NOFRAMES>

</NOFRAMES>
/FRAMESET>
</HTML>

kode diatas akan membuat halaman yang anda redirect tetap menggunakan domain dan meta name sesuai yang anda inginkan. Contohnya silahkan akses http://sms.stisitelkom.ac.id kemudian tekan control U.

 

Cara 2 HTML dengan meta

Untuk me-redirect halaman pada html, letakan kode berikut ini diantara tag head :

1.<meta content="3; url=http://hilfan.blog.stisitelkom.ac.id" http-equiv="Refresh" />

kode diatas akan me-redirect halaman ke http://hilfan.blog.stisitelkom.ac.id dalam waktu 3 detik, ganti url diatas dengan url anda

 

Cara 3 Javascript

Untuk me-redirect halaman dengan javascript, letakan kode berikut diantara tag head :

1.<script type="text/javascript">
2.<!--
4.//-->
5.</script>

 

Cara 4 PHP

Gunakan kode berikut untuk me-redirect halaman pada PHP :

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from Just Shared on Tel-U

Subscribe now to keep reading and get access to the full archive.

Continue reading