Web Marketing TODAY - Your trusted Internet marketing resource since 1995.
What's this? Contact  
Site Guides:Marketing ManagersConsultants & Designers Boosting Traffic & SalesJust Getting Started
Home
Web Marketing Today (Free)
Ads and Affiliates
Carts/Transactions
Conversion/Testing
Design/Usability
E-Commerce
E-Mail Marketing
Link Strategies
Local Marketing
Marketing Tools
Miscellaneous
New Media
Paid Search
Recommendations
SEO
Web Analytics
Boost your sales with Web Marketing Today Premium Edition
Web Marketing Today Premium
Secure Login
Subscribe now
Address Change
Speaker
Professional Speaker
Phone Consulting
About Us
Team Bios
Contact Us
Advertise Here
Press
Awards & Kudos
Site Map
Privacy Policy
Related Site
Joyful Heart
Renewal Ministries: Internet
Bible studies, articles, and stories

Server Side Includes (SSIs)
and Navigation Systems

by Dr. Ralph F. Wilson
Web Marketing Today, Issue 47, August 1, 1998

There larger your site is, the more you need to consider constructing it with Server Side Includes (SSIs for short). SSIs allow you to modify your navigation system quickly and easily. If your site is a dozen pages or so, don't bother with SSIs. But when you get to 20 pages or more, they're well worth the learning pain they generate. SSIs are text files on your server that are called whenever a visitor clicks on your URL. Here's how they work.

Most business pages have a lot of material that is the same on every page: left-side menu, top graphic, bottom text, etc. With SSIs you can make each of these sections into a Server Side Include file to insert like "boilerplate" text into your Web page. The code to left-side menu into your page would be something like:

<!--#include virtual="/ssi/wmt-side.ssi"-->
This command inserts about 50 lines of HTML. I use SSIs to call the left-side menu, top graphic, a line under a page title, a banner ad, and the text and image map, copyright information, etc. at the bottom of the page. To change the left-side menu, I don't have to touch the Web pages, only the file I've named wmta-side.ssi.

Tips

Here are a few technical tips about SSIs:

  • You don't need to use the traditional *.shtm and *.shtml filename extensions. You can ask your ISP to turn on SSIs for your entire site. Or you may be able to do it yourself without his permission by inserting a file named .htaccess in your root directory containing such lines as:
    Options Includes FollowSymLinks
    AddType text/x-server-parsed-html .html
    AddType text/x-server-parsed-html .htm
    AddType text/x-server-parsed-cgi .cgi
    
  • SSIs place an increased burden on the Web server, since now it must "parse" or carefully scan each *.htm Web page in your site to find and deliver its component elements in order to display the Web page. Thus, ISPs don't really like SSIs.
  • If you use FrontPage 98, you might try the "Include Page Component" which does the same thing as SSIs.

Learning Resources

SSIs are thing a beauty, but not for beginners. Do not try this at home. (Okay, go ahead and try it, but when you start pulling your hair out in tufts, don't say I didn't warn you.) The documentation available on Server Side Includes is poor. Yes, all the elements are there, but they seem pretty cryptic when you don't know what they mean. You'll just have to do some trial and error to learn this, though you'll find some help with these resources:

SSIs are very necessary for large sites, even though SSIs are a pain to learn and implement, and are an increased burden on the server. They are very well worth the pain the next time it comes to redesign your site's navigation system.

Please note: I am unable to field questions about implementing SSIs. I'm sorry. However, I'll offer a few tips:

  • Begin by testing a file that contains just one or two of these commands before you set up an entire system.
  • If your Web page comes up with the message "[an error occurred while processing this directive]" that indicates that the server is scanning your page for SSI commands, but something is wrong with the command within your Web page. If you see this error message, your .htaccess files is probably working okay.
  • Look for picky little things such as a beginning foward slash in front of the virtual command /ssi/filename.txt. Also, some servers or some CGI programs running on SSI pages may require you to remove any spaces between the actual command and the <!-- --> outer "envelope."
  • Make sure you reload/refresh the Web page with your browser after making these tiny changes. Otherwise, you may have fixed it and not know it.
  • Troubleshooting SSIs is frustrating at best. Remember, we can't field questions about this seemingly mystical procedure. I wish you the best! For further help consult Mark West's Server Side Includes Tutorial.

Read additional articles from Web Marketing Today, Issue 47, August 1, 1998



AddThis Social Bookmark Button

Three free e-books Subscribe to our free e-mail newsletter -- Web Marketing Today®, published to 108,000+ confirmed opt-in subscribers worldwide. Just to encourage you to take this step, I'm including three free e-books that you can download and read: The Web Marketing Checklist: 32 Ways to Promote Your Website, 12 Website Design Decisions Your Business Will Need to Make, and Making & Marketing E-Books, each worth $12 -- just for subscribing. No catch.RSS feed
First Last
E-mail
Country (2-letter abbreviation)
Preferred Format Plain text HTML

We respect your privacy and never sell or rent our subscriber lists. Subscribing will not result in more spam! I guarantee it!

 


Home | WMT Premium | WMT Free | Books | Video | Contact Us
Search | Research Room | Advertising | About Us | Consulting | Speaking

Wilson Internet Services
http://www.wilsonweb.com
PO Box 308, Rocklin, CA 95677, USA
Phone +1 (916) 652-4659 (MF 8 am-4 pm Pacific Time)

Copyright © 1995-2008 by Ralph F. Wilson, all rights reserved. Content, graphics, and HTML code are protected by US and International Copyright Laws, and may not be copied, reprinted, published, translated, hosted, or otherwise distributed by any means without explicit permission. Trademarks and terms of use.


Completely revised and updated. Purchase now!

Products & Services

Dr. Wilson's Books

  • Guide to Search Engine Optimization (2007)
  • How to Promote Your Site thru Article Marketing
  • Social Bookmarking and Marketing
  • Report on Pay Per Click (PPC) Bid Management Software
  • Research Guide to Online Niche-Finding
  • The E-Mail Marketing Handbook (2nd Edition)
  • How to Promote Your Local Business on the Internet
  • PayPal Buyers Survey 2004
  • 10 Steps to E-Business on a Shoestring
  • How to Develop a Landing Page 2005
  • The Shopping Cart Report
  • Report on Affiliate Management Software 2005
  • Optimize Your Webstore Sales
  • How to Optimize Your Landing Pages Scientifically
  • Reciprocal Linking Tools
  • Planning Your Internet Marketing Strategy See the table of contents and sample chapter.



    Dr. Wilson's Recommendations
    A/B Split-Testing Software
    Content Management Systems
    E-Commerce Tools
    E-Mailing Services/Software
    Pay Per Click (PPC) Advertising
    Search Eng. Optimiz. Tools
    Video Marketing
    SEO Services
    Web Analytics



    SiteSell
    Site Build It!