HTML Code for Redirection

I was working on a project last week and I wanted to redirect one website to another. Although I have designed quite a few websites, it was hard for me to recollect the syntax for redirection. So, I am just posting it on my website as an easy reference for next time and also for Tech Pedia readers.

<meta HTTP-EQUIV="REFRESH" content="0; url=http://technopedia.info/tech">

This code should go between <head> and </head>. The content which is “0″ in this case is the time in seconds for redirection to happen. If the content is set to “5″, redirection takes place after 5 seconds and so on and so forth.

Note: For this webpage, the body section is not necessary.

So, the HTML file looks like this:

<html>

<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=http://technopedia.info/tech">
</head>

</html>

It’s simple but hard to remember.

Related posts:

  1. Useful JavaScript code snippet to save your website content from being copy-pasted!
  2. Use the right KEYWORDS in your meta tags
  3. How to analyze the Google Adsense code?
  4. Build a Profit Making Website in a Week
  5. Top 5 SEO Myths

Filed Under: Archive Categories

About the Author

Abhinav Kaiser is a certified project manager (PMP) and an expert in IT service management. He has been writing on several blogs for over 6 years and has been a source of inspiration for many budding bloggers. He recently started a blog, Abhinav PMP and his latest baby in the works needs special mention - Success Mantras. Click here if you need to get in touch.

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.