File extensions?
JQ Johnson
jqj at darkwing.uoregon.edu
Mon May 10 16:27:37 EDT 1999
Jay H. Frantz asked about using server side includes in his index.html
file, presumably when using Apache as web server. Several people have
replied, but here's yet one more approach (Apache is perhaps TOO flexible
and configurable):
in your .htaccess file, place the following line:
AddType text/x-server-parsed-html .html
If your system admin allows AddType directives in user .htaccess files,
this will force the web server to treat .html files just as it probably
treats .shtml files. Note that this applies to all files in the
directory; to make it apply to only certain files, try putting it inside a
<files> directive:
<files "index.html">
AddType text/x-server-parsed-html .html
</files>
Note that xbithack is often not compiled in or is disabled, so the above
approach is generally preferable.
See the Apache manual, <http://www.apache.org/docs/> for more information.
JQ Johnson Office: 115F Knight Library
Academic Education Coordinator mailto:jqj at darkwing.uoregon.edu
1299 University of Oregon phone: 1-541-346-1746; -3485 fax
Eugene, OR 97403-1299 http://darkwing.uoregon.edu/~jqj/
More information about the Web4lib
mailing list