untitled
viviti
 HTML Amigo HomeHome
 HTML
   Introduction to HTML
   Using Notepad
   General Form
   Meta Tags
     Keywords Tag
     Description Tag
     Century 21 Tag
   Text Formatting
   Lists
   FTP
   Links
   Tables
   Images/Multimedia
   Frames
   Forms
   Style Sheets
   Javascript
   Web Hosting
   Special Characters
   Glossary
 Help Forums
   HTML Help Forum
Fast connection
   HTML Help Forum
Slow connection
 Extra (Important) Stuff
   Comments
   Link To Us
   Web Tools
   Resources
   The Poll Page


The Redirecting META Tag

      Okay, so you've set up a site and its domain name was www.reallybadhost.com. Tons of people come and visit your site. However, you being the genius that you are found a better host and now your new site is called www.reallygoodhost.com. How do you redirect visitors from your old site to the new one?

      These pages are called Century 21 pages. You've seen them everywhere: you stumble on a site that reads "We have moved!" Usually you are redirected automatically, as if by magic, to the new URL within seconds.

      The way you do this is by placing a simple META tag in the HEAD element.

< HEAD>
< META HTTP-EQUIV="REFRESH" CONTENT="5; URL=http://www.newsite.com/">
</HEAD>

      Notice first that HTTP-EQUIV="REFRESH" This tells the browser that this META tag is going to refresh this page.

      Secondly, notice the CONTENT = "5; URL=http://www.newsite.com/" attribute. This means that in 5 seconds the page will redirect to www.newsite.com. Obviously, you could replace the number 5 with a different time period (i.e 10, 15, etc.) and also change the URL.

The Code


    Remember, that you should also include a physical link to the new URL on the page that the user can click on in case the browser doesn't redirect them.

Rate Tutorial:
12345
Rated: 0 out of 5
Votes: 0
Free Email Forms from Bravenet.com

Continue to Century 21 META Tag



© HTML Amigo 2005


Web Hosting · Blog · Guestbooks · Message Forums · Mailing Lists
Easiest Website Builder ever! · Build your own toolbar · Free Talking Character · Email Marketing
powered by a free webtools company bravenet.com