How to redirect website by HTML

How to redirect website by HTML

Many time and for various reason we needed to redirect our website to a different website. It is very easy for experts. But for new web developer it can make tension, how to do it! So, I will give very easy and simple tips today for that. Actually there is various ways to redirect website.

For website redirect we are using javascript. Example:

[javascript]
<script type=”text/javascript”>
function Redirect(){window.location=”http://yourdomain.com/”;} document.write(“”);
setTimeout(‘Redirect()’, 3000);
</script>

[/javascript]

 

But now we can redirect website only using HTML code.

[html]
<!DOCTYPE html>

<html>

<head>

<title>Redirect</title>

<meta http-equiv=”REFRESH” content=”0;url=http://yourdomain.com/”>

</head>

<body>

</body>

</html>

[/html]

One Comment

Add a Comment

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