[WEB4LIB] RE: Redirect html->cgi?

Thomas Dowling tdowling at ohiolink.edu
Thu Aug 20 16:47:40 EDT 1998


This may in fact be the simplest approach.  However, it bears pointing out
that some browsers (including some indexing spiders) do not honor META
refreshes, or can be configured not to do so, and in other browsers a META
refresh with a time of 0 seconds really messes up the back button.

If this is really a permanent change, it seems more thorough and elegant
IMO to send out a real Redirect header, and that means server
configuration rather than HTML tagging.  I experimented a little, and it
looks like the Apache Redirect directive should work.


Thomas Dowling
OhioLINK - Ohio Library and Information Network
tdowling at ohiolink.edu


> -----Original Message-----
> From: web4lib at webjunction.org
> [mailto:web4lib at webjunction.org]On Behalf Of Vladislav S. Davidzon
> Sent: Thursday, August 20, 1998 4:50 PM
> To: Multiple recipients of list
> Subject: [WEB4LIB] RE: Redirect html->cgi?
>
>
> Why not use a link and the meta automatic reload/redirect tags?
>
> -vd
>
> > -----Original Message-----
> > From: web4lib at webjunction.org
> > [mailto:web4lib at webjunction.org]On Behalf Of lydia
> > Sent: Thursday, August 20, 1998 4:30 PM
> > To: Multiple recipients of list
> > Subject: [WEB4LIB] Redirect html->cgi?
> >
> >
> >
> > Has anyone attempted to redirect users from a single html page to a
> > single cgi script? Can it be done? (We're running Apache 1.3 on
> > Solaris.)
> >
> > I've tried out the intuitively obvious theories already, with these
> > results:
> >
> > 1. symlink from "moveme.html" to "moved.cgi" --
> >    The link works fine, but the webserver displays the destination
> >    file as html, rather than handling it as a cgi script.
> >
> > 2. ScriptAlias from httpd.conf --
> >    ("ScriptAlias /path/moveme.html /path/moved.cgi")
> >    I had a theory that it would be possible to tell the server that
> >    in this single instance, it could execute an html document as cgi.
> >    Since ScriptAlias is designed to specify an entire directory,
> >    rather than a single filename, it's unsurprising that this just
> >    returns our 404 error message.
> >
> > 2. Redirect from httpd.conf --
> >    ("Redirect /path/moveme.html http://server.foo.edu/moved.cgi")
> >    Of course, ScriptAlias is also designed to work with entire
> >    directories--so this is essentially the same solution as
> the symlink.
> >
> > It begins to seem like I'm just requesting functionality that can't
> > exist. Any intrepid souls out there already faced this?
> >
> >
> ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
> ~-~-~-~-~
> >  Lydia Ievins, Systems Librarian          Office for
> Information Systems
> >  phone 617/495-3724; fax 617/495-0491     Harvard University Library
> >
> ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
> ~-~-~-~-~
> >
> >
> >
> >
> >
> >
>



More information about the Web4lib mailing list