User Tools

Site Tools


ssi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ssi [2023/04/05 13:29] – Thanks to jdd for figuring this out on bboard dbohdanssi [2024/06/18 08:35] (current) – Added information about DirectoryIndex dbohdan
Line 1: Line 1:
 ====== How to enable Server Side Includes ====== ====== How to enable Server Side Includes ======
  
-SDF users can use [[https://en.wikipedia.org/wiki/Server_Side_Includes|Server Side Includes]] on their sites. Before the 2023 migration (to new hardware and NetBSD 9.3) SSI was enabled by default; now it must be enabled manually. To enable SSI in ''.shtml'' files, add the line below to the file ''.htaccess'' in your ''~/html'' directory. Create the file if necessary.+SDF users can use [[https://en.wikipedia.org/wiki/Server_Side_Includes|Server Side Includes]] on their sites. Before the 2023 migration (to new hardware and NetBSD 9.3)SSI was enabled by default; now it must be enabled manually. To enable SSI in ''.shtml'' files, add the line below to the file ''.htaccess'' in your ''~/html'' directory. Create the file if necessary.
  
 <code> <code>
 AddHandler server-parsed .shtml AddHandler server-parsed .shtml
 +</code>
 +
 +You may also need to add this line to make ''index.shtml'' your index page:
 +
 +<code>
 +DirectoryIndex index.shtml
 </code> </code>
ssi.1680701361.txt.gz · Last modified: 2023/04/05 13:29 by dbohdan