home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / ONLINE / SREFV12J / CONFIGS.ZIP / notfound.cnf < prev    next >
Text File  |  1997-03-01  |  3KB  |  76 lines

  1.  
  2. <h1>Customize the "could not find document" response</h1>
  3.  
  4. SRE-Filter returns a short <b>generic</b> 
  5. response when a request for a non-existent
  6. document is recieved. You can add a one-line <em>custom</em>
  7. response to this <b>generic</b> response.
  8.  
  9. <p>
  10. <FORM ACTION="/srefconf" METHOD="GET">
  11. <input type="hidden" name="SET" value="not_found_url">
  12. Enter a <em> custom response  line</em>:<INPUT TYPE="text" NAME="thevalue"
  13.  VALUE="$not_found_url"  SIZE=60 MAXLENGTH=80>
  14.  
  15. <INPUT TYPE="submit" VALUE="Update this Parameter">
  16.  
  17. </FORM>
  18.  
  19. $CANCEL
  20.  
  21. <hr>
  22.  
  23. This string is included in SRE-Filter's generic "I could not find the
  24. requested document" response.
  25.  
  26. <blockquote>It should be a valid HTML string. In particular, you may want
  27. to include a link back to your home page.<br> However, if you 
  28. do not want to include a message, just leave this field blank
  29. </blockquote>
  30.  
  31. <blockquote>
  32.   Example: <br>
  33. <b>'<a href="/"> Visit the HOME_NAME page? </a> ' </b>
  34. </blockquote>
  35.  
  36. Note that the <em>(optional)</em> HOME_NAME substring will be replaced with the current
  37. value of the HOME_NAME variable (the HOME_NAME variable is set by 
  38.  <A HREF="/srefconf?show=home_name">The <EM>colloquial</EM> name of your site</A>
  39. option).
  40.  
  41. <hr>
  42.  
  43. <h3> !!! Special option !!! </h3>
  44.  
  45.  If you want to return a custom document, perhaps one that lists 
  46.  several choices, you should can use the following syntax:<br>
  47.     <menu><li><code>FILE=fully_qualified_file_name</code></menu>
  48. <br>
  49.  For example:<b> FILE=d:\www\notfound.htm</b>
  50. <p>
  51.  
  52. The returned document (D:\WWW\NOTFOUND.HTM in this example)
  53. will NOT have server side includes -- it is sent
  54. "as is".  There are a few special exception to this rule (for HTML
  55. documents):
  56. <ol>
  57.    <li> all occurences of <!-- #URL --> will be replaced with the URL
  58.           (of the requested resource).
  59.    <li> all occurences of <!-- #SERVER --> will be replaced with the
  60.           server's IP address.
  61. </ol>
  62.  
  63. <h4> More notes... </h4>
  64. <ul>
  65.    <li> You can specify any type of document (i.e.; an HTML file, a GIF file,
  66.      or a plain/text file). 
  67.     <li>An fully qualified file name is expected: no attempt is made to map a relative
  68.      file name to the data directory.
  69.      <li>The file can be anywhere (it need not be in the data directory,
  70.      or in a virtual directory).
  71.      <li> The <A HREF="/!SendAs_text_plain/samples/notfound.htm">NOTFOUND.HTM</A> file (that ships with SRE-Filter) can be
  72. used as a template.
  73. </ul>
  74.  
  75.  
  76.