T.R | Title | User | Personal Name | Date | Lines |
---|
182.1 | you have some choices | 2903::FLEISCHER | without vision the people perish (DTN 381-0426 ZKO1-1) | Tue May 13 1997 17:07 | 40 |
| 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.2 | | BIGQ::SILVA | http://www.ziplink.net/~glen/decplus/ | Tue May 13 1997 19:09 | 3 |
|
As I said in mail, Bob..... THANKS!
|
182.3 | a few more ramblings | HNDYMN::MCCARTHY | A Quinn Martin Production | Wed May 14 1997 12:15 | 11 |
| 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.4 | | BIGQ::SILVA | http://www.ziplink.net/~glen/decplus/ | Wed May 14 1997 15:21 | 4 |
|
I made the changes last night and it worked fine. Thanks to everyone
who helped.
|