Smith's Family Enterprises Logo
_

_
| Archives | CD ROMs | Site Map | HOME | Phone Support | Search | Newsletter

Ads by Smithfam.com
WebMaster's & Marketing CDs Information, software, graphics, and design tools are critical to success. 180+ Niche Ebook Package
Over 180+ Niche Targeted eBooks with Websites and Master Resale Rights.

How to Update Your Web Site Using Server Side Includes (SSI)
_By Herman Drost   ©2003 All Rights Reserved

_Recently a person asked me if I could replace 125 web pages of her web site with a new drop-down navigation system. If she had to do this manually, she would have to change each page and upload it separately to the server. This would take hundreds of hours. So, what's the answer - use Server Side Includes (SSI)

_
_What is Server Side Includes (SSI)? This is where you can insert one line of simple code to update any web page . This line of code "includes" any file (i.e. navigation bar, header, footer) you wish to insert in each or all of your web pages. Changing this one "include" file and uploading it to your server enables you to update your entire web site without even touching your web pages. It can now be a breeze to update page content such as headers, footers, navigation bars and changing products.
_

Here are the steps to take:
  • 1. Check that your web hosting plan supports Server Side Includes (SSI)-most do.
  • 2. Create an "includes" folder in your web site files.
  • 3. Create the "includes" file containing your navigation bar, header, footer (or whatever file you wish to update on your site). It could be a text or html document. If it is an html file, then only copy what is between the body tags. Remove any html header, footer and body tags from your file. Name this file nav.htm.
  • 4. Place this file in your includes folder. I also included my menu.css file (cascading style sheet) and virtualmenu.js (javascript) file in the includes folder so the file paths are clear. These are inserted between the header tags.
  • 5. Place the following code on the particular web page where you want your navigation bar to appear.
    _
    _<!--#include virtual="/includes/nav.htm" -->
    _
    _I also made sure my menu.css and virtual.js files had the same file paths and placed the code for these files in the header tags of my web page (blank.shtml)
    _
    _ <SCRIPT language=JavaScript1.2 src="/includes/virtualmenu.js" > </SCRIPT >
    _
    _ <LINK REL=STYLESHEET TYPE="text/css" HREF="includes/menu.css" >
    _
    _You could create a line of SSI code for these files also. I left them as they are, because the .js and .css files are already included in the header tags of the /blank.shml page.
    _
  • 6. Change the extension name (maybe it was .htm) of this web page that contains your line of code, to .shtml (in my example it's blank.shtml).
  • 7. Upload your includes folder and your web page (blank.shtml) to your server.
  • 8. Refresh (right click your mouse and look for refresh) your web page to reflect your new navigation bar. _Now, if you wish to change the appearance of your navigation bar throughout your web site, you just need to edit one file (nav.htm file), then upload it to your server. Your changes should appear immediately on every page of your web site where you included the SSI code. Congratulations! You have just saved yourself hundreds of hours of time updating your web site.
    _

    Other resources for Server Side Includes (SSI)
    _
    _Using Server Side Includes in Dreamweaver It is very easy to use Server Side Includes in Dreamweaver. Once you have made your Include file, all you need to do is click on insert > Server Side Includes, choose the file you need, make sure the path is relative to the Site Root and insert it.
    _
    Using Frontpage Includes Component
    http://outfront.net/tutorials_02/getting_started/includes1.htm
    http://www.bignosebird.com/ssi.shtml
    http://www.webreference.com/programming/ssi/intro/
    http://www.netmechanic.com/news/vol2/server_no8.htm


HERMAN DROST is a Certified Web Site Designer (CIW), owner and author of iSiteBuild.com Affordable Web Site Design, Hosting, and Promotion Packages (http://www.isitebuild.com)
_
_Subscribe to his "Marketing Tips" newsletter for more original articles. mailto:subscribe@isitebuild.com.
_Read more of his in-depth articles at: www.isitebuild.com/articles



_
_

_

| Archives | CD ROMs | Site Map | HOME | Phone Support | Search | Newsletter |
_

_
_

_
Bob's Marketing Phone Support
Home Business CD ROMs
Internet Marketing Tutorials
The eBook Wholesaler Site
The Internet Marketing Center
Good e-Books & Courses
Wholesale Info Publishing CD
Your Own Associate Program
Can´t find it Here? - Ask Bob
Downloadable Business Packages
Search Engine Submission Software
Find A Business Hosting Company
Low Cost Smart Autoresponder Script
Free Web Based Autoresponders
Credit Card Processing - Free Setup
Smithfam's Affiliate Program

_
Truly Automate Your Website Submissions to Over 800,000 Places
Generate Free Web Site Traffic
Click HereTo Get More Information Via Email

| MoreTraffic | Support | Site Map | HOME | Ask Bob | CDs |
| Articles | Search Site | Newsletter | Archives | Packages | About Bob |
| Half-Price Today | Good eBooks | Affiliate Program | eBook Wholesaler | Archives |
| Credit Cards | Script Archives | Webmaster's Tools | Autoresponders | Business Opps |
| Hosting | Getting Started | Free Hosting | Free Software | Free Graphics | Site Promotion |
_
_
A Seed Gives Birth to Fruit of its Own Kind

Internet Information Marketing Specialists
2606 Summer Lane, Eugene OR, 97404
(541) 689-1847
 Click Here to Email Bob Smith
© 1996-2007 Smith's Family Enterprises Inc.
_
Proudly Hosted By
ICDSoft Hosting
_
SF