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 >
Wrap
Text File
|
1997-03-01
|
3KB
|
76 lines
<h1>Customize the "could not find document" response</h1>
SRE-Filter returns a short <b>generic</b>
response when a request for a non-existent
document is recieved. You can add a one-line <em>custom</em>
response to this <b>generic</b> response.
<p>
<FORM ACTION="/srefconf" METHOD="GET">
<input type="hidden" name="SET" value="not_found_url">
Enter a <em> custom response line</em>:<INPUT TYPE="text" NAME="thevalue"
VALUE="$not_found_url" SIZE=60 MAXLENGTH=80>
<INPUT TYPE="submit" VALUE="Update this Parameter">
</FORM>
$CANCEL
<hr>
This string is included in SRE-Filter's generic "I could not find the
requested document" response.
<blockquote>It should be a valid HTML string. In particular, you may want
to include a link back to your home page.<br> However, if you
do not want to include a message, just leave this field blank
</blockquote>
<blockquote>
Example: <br>
<b>'<a href="/"> Visit the HOME_NAME page? </a> ' </b>
</blockquote>
Note that the <em>(optional)</em> HOME_NAME substring will be replaced with the current
value of the HOME_NAME variable (the HOME_NAME variable is set by
<A HREF="/srefconf?show=home_name">The <EM>colloquial</EM> name of your site</A>
option).
<hr>
<h3> !!! Special option !!! </h3>
If you want to return a custom document, perhaps one that lists
several choices, you should can use the following syntax:<br>
<menu><li><code>FILE=fully_qualified_file_name</code></menu>
<br>
For example:<b> FILE=d:\www\notfound.htm</b>
<p>
The returned document (D:\WWW\NOTFOUND.HTM in this example)
will NOT have server side includes -- it is sent
"as is". There are a few special exception to this rule (for HTML
documents):
<ol>
<li> all occurences of <!-- #URL --> will be replaced with the URL
(of the requested resource).
<li> all occurences of <!-- #SERVER --> will be replaced with the
server's IP address.
</ol>
<h4> More notes... </h4>
<ul>
<li> You can specify any type of document (i.e.; an HTML file, a GIF file,
or a plain/text file).
<li>An fully qualified file name is expected: no attempt is made to map a relative
file name to the data directory.
<li>The file can be anywhere (it need not be in the data directory,
or in a virtual directory).
<li> The <A HREF="/!SendAs_text_plain/samples/notfound.htm">NOTFOUND.HTM</A> file (that ships with SRE-Filter) can be
used as a template.
</ul>