Using Server Side Includes to Simplify Your Web Design

An "include" file is a piece of code that can be put into a seperate file -- for example -- your navigation bar -- and then "included" in a number of other pages. This has the very useful advantage of allowing you to retain consistency over a very large number of pages, and then make changes to all of those pages by just changing the include file.

For instance, say you want each page in your site to include a short paragraph that uniquely identifies your site. I normally call this a "site-id". It would read something like this:

ForSaleTours.com - provides information and sources for virtual tours for the real estate industry. We explain different methods of combining video and audio to produce virtual representations of your home to enhance its value and to make the purchasing experience of potential buyers better than it otherwise might be.

To set this up so it appears in a host file as an "include", you normally have to do three things:

1. Make sure your server allows SSI (server side includes). If you have access to your web site control panel you should be able to figure this out. Or if not, ask your web host technical support people.

2. Create a "host" file and give it a file extension so your server recognizes it contains include files. A common extension is .shtml

3. Create your include file. It can usually have any of a number of different extensions: .html, .htm, .php, even .txt. This is the file that will be included within other files.

4. Embed the correct code within your .shtml file to point to the include file. If the include file and host file are in the same folder on the server, it will look like this:

<!--#include file="file_name.html"-->

If the include file is located in a different folder (on the same server), the code will look like this:

<!--#include virtual="folder_name/file_name.html"-->

In the above example you have to make sure the relative path to the include file is set correctly.

Now when you want to make a global change to, for instance, your "site-id", you just have to change the include file (once), and this change will be populated through all the pages that include that file.

Include files can be put to many creative uses that allow you to do things that are otherwise very impractical. And if you have a website with a large number of pages, this technique can save you a great deal of time.

For more web design and online marketing tips see the Linknet Marketing Resource Library

Rick Hendershot is a marketing consultant, writer, and internet publisher who lives in Conestogo, Ontario, Canada. He publishes several websites and blogs, including The Linknet Network of Websites. This network provides an inexpensive way to advertise your website, and get as many as 100 low cost links.

In The News:


pen paper and inkwell


cat break through


Understanding How HTML Color Codes Work

Ever wonder how HTML color codes are put together? For... Read More

Affordable Web Design In Birmingham

If you have a business, big or small you may... Read More

The Secret To A Profitable Website

Whether you are planning on having a website built for... Read More

Top Ten Absolutely Free Websites for Downloading Cool Fonts

The following list of websites is the best compilation of... Read More

7 Reasons Why Using CSS is a Must

CSS is a new option for website designers that have... Read More

How To Improve The Professional Look And Feel Of Your Website

Projecting a professional image is paramount to your website's success.... Read More

Hiring a Graphic Designer

You've come up with a great product. You've got the... Read More

How To Boost Your Chances at Having a Successful Web Site

New Web sites are springing up online by the millions.... Read More

Converting Traffic into Sales

Making a successful online business can be a long and... Read More

Build It And Build It Cheap! Part II

If you are familiar with my work, then you have... Read More

Keyword Density

We can't emphasize enough the importance of including keyword-rich content... Read More

Finger Eating Garage Door Reveals Breakthrough Web Design and Linking Strategy

Last Thursday afternoon I was working on a garage door... Read More

Making Good Websites that Stand Out

Websites, there's literally billions of them out there in cyber-space.... Read More

Seven Habits of Highly Effective Webmasters

A highly effective website will always reflect its highly effective... Read More

Want to Increase Your Online Sales? Make Sure That Your Web Site Has a Unique Selling Proposition

If you own a web site or if you are... Read More

Using Server Side Includes to Simplify Your Web Design

An "include" file is a piece of code that can... Read More

10 Important Web Design Tips: SEO Friendly Website

A website should firstly be searched out by visitors before... Read More

6 Reasons Why Using Flash is a BIG Mistake

Most web designers and web design companies will try to... Read More

Branding Web Strategy Mistakes - Brand Identity Guru

1. Lack of overall strategy and clear definition of success:Most... Read More

How To Create A Homepage That Works

Want to know what the worst thing to say on... Read More

Creating a Compelling Headline for Your Private Practice Website

Your home page is the most important page of your... Read More

3 Tips For Writing Content That Will Make You Sales

Content is king. Without content your website is an empty... Read More

Why Dot-Coms Fail - a Webmasters Perspective

Everyday we hear that another company goes out of business.When... Read More

Facts You Should Know About Web Site Design and Search Engine Optimization

1. Web site File Structure / File NamingMost search engines... Read More

Quality Web Copy is the Key to Success

Many websites make the mistake of being all flash and... Read More

The Next Marketing Tool: Deisgn

Design sells. It's something that all of us know, but... Read More

Service Professions: Does Your Website Follow These 5 Simple Rules For Getting More Clients?

There are literally thousands of different options, styles and formats... Read More

11 Steps to Sticky Web Site!

An attractive and user-friendly Web site is crucial to attracting... Read More

Immutable Laws Of Effective Navigation - Part 1

The first immutable law of effective navigation: It's gotta be... Read More

How To Use Unsafe Web Colors With Minimum And Safety And Maximum And Profit

Do you want to use unsafe web colors without offending... Read More

Flash - To Use Or Not To Use?

Out there in the WWW there are thousands sites using... Read More

How to Make a Website (Minus the Headaches)

There is nothing wrong with making your own website if... Read More

KIS - Keep It Simple

There are many ways to add fancy bells and whistles... Read More