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 191 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

  • gabriela: i know this phone is so cool because i have it
  • John C. Reid: Kaspersky recently found Malware preinstalled on a new, sealed one of these. Link –>...
  • code learner: Hey good! it works dude… thanks
  • rohit: fortiguard has blocked every thing ..sir even keygen site facebook etc… i want to bypass it …...
  • Darshan Pandit: Great work! Even I’ve been looking for some interesting guide for ActionScripting. You must...

Older Posts

Ads

  • Advertise Here

Topics