Sometimes we use code to redirect webpage to different location. Here you will get 5 types of “Redirect Code” based on common interest. Choose the best for you …


Code 1 : SEO-friendly Redirect Code


<html>
<head>
<title>
Dear Technology Magazine</title>
<meta
name="description" content="Welcome to the official website of Dear Technology Magazine">
<meta name="keywords" content="key word 1, key word 2, key word 3, key word 4">
<meta name="distribution" content="global">
<meta name="revisit-after" content="7 days">
<meta name="robots" content="follow,index">
<meta name="owner" content="Dear Technology Magazine">
<meta name="author" content="Dear Technology Magazine ">
<link
rel="shortcut icon" type="image/x-icon" href="https://www.example.com/favicon.ico">
</head>
<frameset
border="0" rows="100%,*" cols="100%" frameborder="no">
<frame
name="TopFrame" scrolling="yes"
noresize src="https://www.example.com/target_url">
<frame
name="BottomFrame" scrolling="no" noresize>
<noframes></noframes>
</frameset>
</html>

 

 

Code 2 : Fixed title Redirect Code


<html>
<head>
<title>
Dear Technology Magazine</title>
</head>
<frameset
rows="0,*" border="0" frameborder="no">
<frame
name="header" scrolling="no" noresize target="main" src="https://www.example.com">
<frame
name="main" src="https://www.example.com">
<noframes>
  <body>
  <p>
This page uses frames, but your browser doesn't support them.</p>
  </body>
  </noframes>
</frameset>
</html>



Code 3 : It will redirect and load after 5 Seconds (Perfect for 404)


<html>
<head>

<title>
Dear Technology Magazine</title>
<meta
http-equiv="Refresh" content="1; URL=https://www.example.com/target_url">
</head>
<body
>
<p><b><font
face="Trebuchet MS" color="#0093F4">Loading.....</font></b></p>
</body>
</html>
 

 

Code 4 : For two part web site, important for Top fixed Ad


<html>
<head>
<title>
Dear Technology Magazine</title>
<meta
name="description" content="Welcome to the official website of Dear Technology Magazine">
<meta name="keywords" content="key word 1, key word 2, key word 3, key word 4">
<meta name="distribution" content="global">
<meta name="revisit-after" content="7 days">
<meta name="robots" content="follow,index">
<meta name="owner" content="Dear Technology Magazine">
<meta name="author" content="Dear Technology Magazine ">
</head>
<frameset
rows="60,*" frameborder="no" framespacing="0" border="0">
<frame
name="demo_head" id="demo_head" noresize="noresize" scrolling="no" marginwidth="0" marginheight="0" src="https://www.example.com/url_one" />
<frame
name="demo_body" id="demo_body" noresize="noresize" marginwidth="0" marginheight="0" src="
https://www.example.com/url_two" />
</frameset>
</html>



Code 5 : Instant URL Relocation Code


<script type="text/javascript">
window.location.replace("https://www.example.com");
</script>