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:

The Future of Web Development  Business 2 Community
Seven web design mistakes that hurts user experience  Business MattersBusiness Matters
Gilbert's first cemetery opens  Community Impact Newspaper
Top 5 Web Design Trends  Business 2 Community

An Ideal Home Business Home Page

From my personal experience of around two year as home... Read More

Website Savvy: 10 Key Steps to Turn Your Customers ON!

"How to turn "slightly interested" customers into "I've got to... Read More

How Do We Know When Its Time To Redesign Our Web Site?

A question we frequently get asked is, "how do we... Read More

Effective Website Design For Massive Traffic

STEP 1:Do your homeworkPlan and think about your content. Think... Read More

Very Cheap Website Design Services

Are you looking for somebody to build you a website,... Read More

Do-It-Yourself or Hire a Professional Designer

Remember your vision for your company and the brand or... Read More

Browser Compatibility

Internet Explorer, created by microsoft has been the most popular... Read More

E-covers for Your Niche Market

When creating an e-cover the what's the first thought that... Read More

Handwriting Font Tips - The Personal Touch That Makes a Difference

Most websites use similar fonts and as a result have... Read More

How to Convince Your Visitors to Return Often

One visit does not make a sale. Be sure to... Read More

Is Your Website Color As Inviting as Your Home? Does Color Really Matter?

We've all read the countless publications about effective web site... Read More

Plugging the Dreaded World Wide Web Black Hole is Just the First Step

You have created your custom error page so now all... Read More

How to Create a Great Landing Page for Your Website

The landing page or entry page of your visitors is... Read More

Creating Quality Websites

Websites, there are literally billions of them out there in... Read More

Be Inspired to Create Better Websites

Being a writer, when I was asked to do some... Read More

5 Ways To Automate Your Site

Automating your online business is one of the most important... Read More

Web Site Templates and Their Benefits

Unarguably, the most important part of your website is content.... Read More

How to Make the Online Sales Copy for Your Website More Conversational

It has been said that the best online sales copy... Read More

Give People What They Want And Watch Your Profits Soar!

Do you know why the majority of people use the... Read More

Website Redesign for Existing Websites

Does your website need a re-design? Here are some questions... Read More

Small Business Website Design - How to Get Professional Results on a Shoestring Budget

Just because you are a small business with an even... Read More

File Types For Icons Explained

An application is not ready for use unless you have... Read More

Dont Overdo it!

Have you ever been to site with so much ad... Read More

Online Businesses Still Ignoring Dial-up Market

In this article you will find the parallel between two... Read More

Every Website is a Human Being?s Attempt at Achieving a Goal or Obtaining Happiness

Have you ever thought about the real stories behind all... Read More