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.


MORE RESOURCES:
Web Designing - Creative Custom Websites - Promotion World (press release)

Web Designing - Creative Custom Websites
Promotion World (press release), CA - Jun 26, 2008
Web design is all about creating a good web site. There are different types of Website designing are: The static website is the simplest way to showcase ...


Choose The Correct Internet Options For Successful Website Profits - Pressemeldungen.at (Pressemitteilung)

Choose The Correct Internet Options For Successful Website Profits
Pressemeldungen.at (Pressemitteilung), Austria - Jun 6, 2008
Let me know if you want more information on webdesign strategies and tactics. Sign up for my free online coaching program at my website.


• Making your message stick - Business to Business

Business to Business

• Making your message stick
Business to Business, New Zealand - Jun 8, 2008
Interestingly there has been a lot of interest from WebDesign companies who want to include PIDPLATES as part of their service to clients. ...


Tips for proper web design - Promotion World (press release)

Tips for proper web design
Promotion World (press release), CA - Jun 20, 2008
From website design tips and ideas to CSS Styles, Dreamweaver, Flash and Fireworks and you'll find all you need to know about web design right here! ...


11 phenomenal tips for web designers when they deals with website ... - Promotion World (press release)

11 phenomenal tips for web designers when they deals with website ...
Promotion World (press release), CA - Jun 10, 2008
Place several web thoughtful themes at your small business web design (http://www.websites4u.com.au/) which reflect your business properly. ...


Hawaii Workshop on Web Site Design: How It Looks vs. How It Works - Hawaii Reporter

Hawaii Workshop on Web Site Design: How It Looks vs. How It Works
Hawaii Reporter, HI - Jun 9, 2008
Monica Flores and her partner Genesis Lodise have been doing webdesign since 1999. Originally working as 10k Webdesign in California, the couple moved to ...

UBB Webdesign.com © 2008