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:
- Useful JavaScript code snippet to save your website content from being copy-pasted!
- Use the right KEYWORDS in your meta tags
- How to analyze the Google Adsense code?
- Build a Profit Making Website in a Week
- Top 5 SEO Myths
Filed Under: Archive Categories
