Server Side Includes (SSI)
In this section, you will learn how to add SSI (server side includes) to your page to make updating a lot easier.
Incase you don't know, SSI stands for Server Side Includes. SSI can make updating your page a lot easier, and a lot less stressful. Here is what to do if you want ssi on your site. First, make sure you are on a site that is cgi/ssi compatible. If you are on geocities, or homestead, it won't work. After you made sure your server is cgi/ssi compatible, begin to make your page like you normally would. Then when you are finished, highlight the content you want to be on every single page, cut it, and paste it into a new document. Save the new document as "whatever.html" (replace whatever with the name you want to save it as.) Next, return to the page where you cut out the content. insert the following code where you cut out the content: [an error occurred while processing this directive] or [an error occurred while processing this directive] (replace whatever with the file name) Use the first code if the watever.html file and the rest of your pages are in the same directory, use the second code if the watever.html file, and the rest or your pages are in a separate directory. Insert the above code in any page that will use the content you cut out. After you have done that, save ALL of your pages that will use that code with a .shtml extension. Then, upload your files to your server, and see if it worked!
Some possible reasons it might not have worked are:
- you forgot to rename your .html files to .shtml
- your server isn't CGI compatible
|