Update Your Site Instantly With SSI

There are probably two main ways you currently update your site. The first, and most important, is adding new content. Whether you are updating a calendar, adding a new page, or putting in a photo of a new product, you are enhancing the value of your site for your visitors.

The second, and more time-consuming changes are those that are made to every page of your site. These might include copyright dates, contact information, the date and time, or navigation links. If you have a large site, changing just your company phone number on every page can be a time-intensive, boring job.

Modern web development tools such as Macromedia's Dreamweaver offer a template feature that allows your web designer to change one section of a single page (say the contact info) and have the software automatically change all the pages that were made from that template. Those changed pages are still on the designer's computer, however, and must be uploaded to your server one page at a time. Depending on the number and size of the pages, and the speed of your designer's modem, updating a site this way can take awhile.

A simpler and faster method uses something called Server Side Includes (SSI). We'll use the example of updating your contact information, which is currently found at the bottom of every page of your site.

Update Your Site Instantly With SSI

Here's How It's Done

Your designer originally creates a new page that only contains your contact information. This page is saved as a regular HTML page.

Next, the designer decides where on each page of your site to place the contact info. In that spot, instead of typing in your address, phone number and email, he places a single line of code that might look something like < !--#include virtual="../includes/newsSSI.html"-->.

This code tells the server to take whatever is on the SSI page and place it in this location.

Each page is then saved with the .shtml suffix instead of the plain .html ending. For instance, the URL of your home page might be www.yourcompany.com/index.shtml. This tells the server that hosts your web site that this page has a Server Side Include in it which must be dealt with before the page is sent back to the visitor. Every time this page is called, the server will check the SSI page and load its content into the designated area of the web page.

How This Saves Time

Once the system is in place, updating every page of a large site is a two-step operation. The SSI page is changed (perhaps the phone number) and that one page is uploaded to the server. That's it! Now every page with a dot shtml ending will show the change instantly, without the entire site having to be uploaded to the server.

I use this on my site every time I add a new article. At the top of each page is a pointer to my SSI page. On that page it just says, "This week's article is..." with the article name and a link to it. Every time I add a new article to the site I just change the title and link on the SSI page and upload it to the server. Instantly, every page on the site has the new article name and link.

Probably the most common use of SSI is to automatically post the current date and time. Just insert the code < !--#echo var="DATE_LOCAL" --> where you want the date and time to appear and the server will take care of the rest.

Conclusion

If you have a relatively small site, you probably don't need to use SSIs, but as your site grows, these little snippets of code can save your designer a considerable amount of time, which should save you a corresponding amount of money.


Related Articles

  • The Latest Google Page Rank Update
    I am not sure how many people have noticed or even care, but there seems to have been another page rank update from Google. This update is very strange however and things are happening that are a lot different from anything I have ever seen before.
  • Promoting Your Site Twice!
    I recently became aware that promoting your web site in Search Engines can instantly be doubled within Google! Thats right, you can instantly promote your site 2 times at once! So how do you Market Your Site twice?...
  • Search Engine Updates vs. SEO
    Webmasters always anxiously wait for a search engine update. Those who rank well want to see their sites get even better. Those who didnt do well expect a major boost. Those whose sites get de-indexed anticipate a major comeback...
  • Use JavaScript To Dynamically Update Your Website
    If youve been on the Internet for a while, youve probably seen numerous examples of JavaScript use. JavaScript is a powerful scripting language used to create special effects on your website, but did you know it can also be used as a very powerful web design tool? Have you ever joined a new .....
  • Logo Design Mania
    When you are about to design your very own logo take into consideration how you plan to use it. For instance, a logo created for website or full color stationery printing will be designed for faxing and imprinting on coffee mugs and other items.
    Most companies crave to use their logo for more th...
  • Let's talk about Article Marketing and why RSS is so important?
    Real Simple Syndication) is the BIG... Buzz around the Internet these days because of its Powerful ability to syndicate content effortlessly and instantly across the Internet to any website and/or subscriber who subscribed to that particular RSS Feed with a 100% GUARANTEED delivery.
  • MAKE YOUR WEBSITE SELL LIKE CRAZY - without a re-design!
    One sure-fire way to keep visitors coming back to you website is with Regular Website Maintenance. All too often pages are not updated regularly enough and become outdated. Web visitors like to see new information every time they come to your site...
  • Website Content Management System (CMS)
    A Website Content Management System is simple terms allows you to update your website without the assistance of a web designer / developer. Initially you will require the assistance of a web developer to create the Website Content Management System for you
  • Top 7 SEO Myths
    Search engine optimization like in everything is not spared of having their own myths. Listed below are the top 7 myths (out of 20) of SEO.
  • Pop-Under Windows - The Latest Pop-Window Trend
    Although there has been a great deal of controversy over the use of pop-up windows, the fact remains; pop-up windows are highly effective. The latest pop-window trend to hit the Internet is the pop-under window. Pop-under windows are less intrusive than the pop-up windows and are believed to be even...

Contact Web Design Outsource and get started today

Need Website Designing, Development, Redesigning, Maintenance and SEO services or help growing your company's web presence? Request a free Quote Now.