S. Berliner, III's sbiii.com HTML Automatic Transfer (Redirect) Page keywords = automatic transfer script redirect HTML

Updated:   01 May 2016; 07:45 ET
URL:  http://sbiii.com/autoxfer.html

S. Berliner, III
Consultant in Ultrasonic Processing
"changing materials with high-intensity sound"

[consultation is on a fee basis]

Technical and Historical Writer, Oral Historian
Popularizer of Science and Technology
Rail, Auto, Air, Ordnance, and Model Enthusiast
Light-weight Linguist, Lay Minister, and Putative Philosopher

note - The vast bulk of my massive Web presence (over 485 pages) had been hosted by AT&T's WorldNet service since 30 May 1996; they dropped WorldNet effective 31 Mar 2010 and I have been scrambling to transfer everything.  Everything's saved but all the links have to be changed, mostly by hand.  See my sbiii.com Transfer Page for any updates on this tedious process.

S. Berliner, III's


HTML (HyperText Markup Language)
Automatic Transfer (Redirect) Page

How does one write an automatic Transfer script to redirect from one URL to another in HTML?

<meta http-equiv="refresh" content="0; URL=http://www.example.com">
    [Courtesy of Adam Gundry on WebDeveloper.com.

Also -

    [Courtesy of Indiana University's Webmastr.IU.

Redirect to a Different URL using the Meta Tag "Refresh"


You may need to redirect people to a different page because a URL has changed or was incorrect when printed or released.  By using the "refresh" tag you can easily let the user know the correct new URL and can automatically redirect them to the new page.  The refresh tag can also help you to make your site more user-friendly; if the correct URL is easy to misspell or confusing, you can make sure that users get to the right page by providing a page at the "wrong" address that will automatically redirect them to the correct URL.

Sample Code

Note that meta tags go in the <HEAD> </HEAD> section of the HTML document.  Also, text within the title tag plays an important role in putting your web pages to rank high for searches.  Therefore it is important to change the text within the title tags. <html>
        <title>IU Webmaster redirect</title>
            <META http-equiv="refresh" content="5;URL=http://www.indiana.edu/~account/new-directory">
        <body bgcolor="#ffffff">
                <center>The contents you are looking for have moved.  You will be redirected to the new location automatically in 5 seconds.
                Please bookmark the correct page at
                <a href="http://www.indiana.edu/~wmhelp/new-directory">http://www.indiana.edu/~wmhelp/new-directory</a> </center>

You can change the amount of time that this redirecting page is displayed by changing the number in the refresh content="5 portion of the meta tag statement.  If you want to have your visitors automatically taken to the correct page, then set the number equal to zero, as in this example:

<META http-equiv="refresh" content="0;URL=http://www.indiana.edu/~account/new-directory">

If you would like to use a redirecting page because a URL has changed, simply replace the document at the original location with one that redirects users to the new URL.  It's a good practice to indicate that the redirecting page will only be provided for a limited time and urge visitors to bookmark the new location.

Not all browsers support the Meta "refresh" function, so it's always a good idea to include a clickable link to the new or correct URL.

You can also redirect users to a different URL using .htaccess. For instructions, see Redirect to a Different URL using .htaccess (on IU site).

If this works, you should be automatically redirected to my HTML page in 60 seconds.


  What happens to all this when I DIE or (heaven forfend!) lose interest?  See LEGACY.


See Copyright Notice on primary home page.

U.S.Flag U.S.Flag


THUMBS UP!  -  Support your local police, fire, and emergency personnel!

Contact S. Berliner, III

(Junk and unsigned e-mail and blind telephone messages will NOT be answered)

© Copyright S. Berliner, III - 2015  - all rights reserved.

Return to Top of Page