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]

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

, , , , ,

Post navigation

Matthew

A blogger who loves simple things in life. He loves beer, movies and cats. He spends his free time outside with her family or on the couch knitting.

One thought on “How to redirect website by HTML

  1. I see your blog is in the same niche like my site. Do you allow guest posts?
    I can write interesting & unique articles for you.
    Let me know if you are interested.

Leave a Reply

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