home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / programs / comms_networking / netplex / !Netplex / !Help / HTML / 11-redir < prev    next >
Encoding:
Text File  |  1997-08-27  |  3.0 KB  |  74 lines

  1. <HTML>
  2.  
  3. <HEAD>
  4. <TITLE>Netplex - Redirection</TITLE>
  5. </HEAD>
  6.  
  7. <BODY TEXT="#000000" BGCOLOR="#ffffff" LINK="#004499" VLINK="#00224c" ALINK="#00cc00">
  8.  
  9. <H1><IMG SRC="images/world" ALIGN=ABSMIDDLE>  Redirection</H1>
  10. <HR>
  11.  
  12. <A NAME="introduction"><H2>Introduction</H2></A>
  13.  
  14. <P>When retrieved, Redirection files will make the client automatically jump to a chosen URL.  Why would you want to do this?  Well, the users of WWW sites come and go; people accessing out-of-date URLs will often be faced with a screen saying something like "<I>The requested object does not exist on this server</I>".  Instead of having this, server administrators can simply set up a Redirection file which automatically points the client to the new location for a resource.</P>
  15.  
  16. <P>Clients that support redirection will automatically jump to the specified URL.  Those that don't will display a referral screen, generated by Netplex, that contains a link to the specified URL.</P>
  17.  
  18. <P>For example, the following file will automatically redirect users to the root page of your WWW server :</P>
  19.  
  20. <PRE><P>
  21. # Example Redirection file
  22. #
  23. # Typical codes are:
  24. #   302 - Moved Temporarily
  25. #   303 - Moved Permanently
  26. #
  27. # The URL given is GSTrans'd so you can
  28. # include references to system variables
  29. # to facilitate running your server on a
  30. # dynamic-IP machine.
  31. #
  32. Redirect
  33. 302
  34. http://<CGI$ServerName>/
  35. </P></PRE>
  36.  
  37. <P>The line, 'Redirect', specifies that this configuration file is a redirector.  The next line, '302', specifies which sort of move the requested object has had.  302 means the move is temporary and 303 means the move is permanent (clients tend not to be bothered about which you use).  The line after that specifies the URL to jump to.  In this case it simply tells the client to go to http://<CGI$ServerName>/ - the root page of the server - although it can be any valid URL.  The URL you give is passed through GSTrans so system variables can be used in it, as is the case here.</P>
  38.  
  39. <P>Redirection files can also be used to generate <B>any</B> server message.  Look in the Messages file for the full list of server messages that Netplex can produce.  For example :</P>
  40.  
  41. <PRE><P>
  42. # "Gone"
  43. Redirect
  44. 410
  45. -
  46. </P></PRE>
  47.  
  48. <P>Will generate a <I>Gone</I> message to the client when it is retrieved.  In this case the URL doesn't matter and it doesn't matter what you put on the last line, although you must still have the last line there.</P>
  49.  
  50. <HR WIDTH="50%">
  51.  
  52. <A NAME="examples"><H2>Examples</H2></A>
  53.  
  54. <P><DL>
  55. <DT><B><A HREF="redirect/example1">Example 1</A></B>
  56. <DD>Automatically redirects the client to the root page of your server.
  57. <DT><B><A HREF="redirect/example2">Example 2</A></B>
  58. <DD>'Gone'.
  59. <DT><B><A HREF="redirect/example3">Example 3</A></B>
  60. <DD>'Not Implemented'.
  61. </DL></P>
  62.  
  63. <HR>
  64.  
  65. <P><CENTER>
  66. <A HREF="10-confi"><IMG SRC="images/buttons/bak" WIDTH=32 HEIGHT=32 BORDER=0 ALT="[ Previous ]"></A>
  67. <A HREF="index"><IMG SRC="images/buttons/up" WIDTH=32 HEIGHT=32 BORDER=0 ALT="[ Index ]"></A>
  68. <A HREF="12-auth"><IMG SRC="images/buttons/fwd" WIDTH=32 HEIGHT=32 BORDER=0 ALT="[ Next ]"></A>
  69. </CENTER></P>
  70.  
  71. </BODY>
  72.  
  73. </HTML>
  74.