Categorized | Programming, Web Design

HTML Code for Redirection

Posted on 06 May 2007

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.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

This post was authored by:

Abhinav Kaiser - who has written 185 posts on Tech Pedia.

Abhinav Kaiser is an accomplished technical blogger and a cyber entrepreneur. He owns Tech Pedia along with several blogs/businesses on the web. To get in touch with him, hit the 'Contact Us' button on the top.

Contact the author

Leave a Reply

Site Sponsors

  • programming freak: And by the way thanks for those useful codes, i am surprised a site like this has C codes? and...
  • programming freak: Keep posting some codes man, i would be glad to find some c/c++/java/html/unix codes, sql queries...
  • programming freak: Hey thanks, good one!
  • Nathaniel Baker: its all good information.. but you forgot one very very important thing…. FAT32 can not...
  • om: Yeah sure it is.. :)

Older Posts

Ads

  • Advertise Here

Topics