[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference terri::web_authoring

Title:Welcome to WEB_AUTHORING
Notice:Before writing, please check for an existing topic
Moderator:VAXCAT::LAURIE
Created:Tue Mar 05 1996
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:186
Total number of notes:1479

182.0. "Auto-Forward" by BIGQ::SILVA (http://www.ziplink.net/~glen/decplus/) Tue May 13 1997 15:52



	What is the command procedure for auto forward? I have moved a page
location and want to set up something that automatically will send the person
to the new location. I couldn't find it in either of my two html books,
although I thought that was where I saw it before. :-)



Glen
T.RTitleUserPersonal
Name
DateLines
182.1you have some choices2903::FLEISCHERwithout vision the people perish (DTN 381-0426 ZKO1-1)Tue May 13 1997 17:0740
re Note 182.0 by BIGQ::SILVA:

> 	What is the command procedure for auto forward? I have moved a page
> location and want to set up something that automatically will send the person
> to the new location. I couldn't find it in either of my two html books,
> although I thought that was where I saw it before. :-)
  
        Well, there are at least two ways to do this.

        One is to have the server responding to the old location send
        an HTTP redirect to the new location.  For example, my
        favorite short CGI script:

        #!/bin/ksh
        echo "Location: http://webu.zko.dec.com/webu/default.htm\n\n"

        This requires you to be able to run a CGI script or other
        mechanism that can send the "Location" response header.  (You
        can't just put this in an HTML file.)  This creates an
        immediate redirection which the user doesn't notice.


        The other technique just requires an HTML file, with a META
        tag as follows:

        <META HTTP-EQUIV=REFRESH CONTENT="5;
        URL=http://www.tiac.net/users/rjf/fizbin.html">

        The number after CONTENT is a time delay in seconds -- it can
        be zero.  Generally with this technique the user does see the
        intermediate page.  In fact it is probably good practice to
        make the intermediate page informative of the change.

        Note that some older browsers may not implement either the
        redirection or the HTTP-EQUIV=REFRESH or both.  For those
        cases it is probably good to follow either with a simple HTML
        page containing a link to the new location and instructions
        to the user to follow it.

        Bob
182.2BIGQ::SILVAhttp://www.ziplink.net/~glen/decplus/Tue May 13 1997 19:093

	As I said in mail, Bob..... THANKS!
182.3a few more ramblingsHNDYMN::MCCARTHYA Quinn Martin ProductionWed May 14 1997 12:1511
Many of the moved pages I have run across have some content
in them like:

  If your browser supports redirection, you will be taken to <new-page> in 
  a few seconds, otherwise please click  here <href-link>.

One thing to note about using the meta stuff without a delay, is the effect
on "go back", at least when viewing the page using Netscape, if you don't
"go back" quick enough, you "go back and go forward" right away.

bjm
182.4BIGQ::SILVAhttp://www.ziplink.net/~glen/decplus/Wed May 14 1997 15:214

	I made the changes last night and it worked fine. Thanks to everyone
who helped.