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:
If the include file is located in a different folder (on the same server), the code will look like this:
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.
How To Improve The Professional Look And Feel Of Your Website
Projecting a professional image is paramount to your website's success. It can make or break your online business. Use this handy article and links to improve the professional look and feel of your site.
5 Powerful Ways To Get Zero Sales From Your Website
I want you to imagine a lemon. In your mind's eye, see its yellow skin. Imagine cutting it in half with a knife. Now pick up the one lemon half and bring it up to your mouth and suck on the juices.
An Ideal Home Business Home Page
From my personal experience of around two year as home business website operator as well as owner, I have spent enough time learning and unlearning. Observing other sites and constantly reading and contributing in online forums about managing a website.
User Experience and Search Engines: If Your Home Page Could Only Talk
Dear web site visitor.
Size Does Matter!
In this article we will be looking at why you should keep your web page size small.
Long Copy Sales Letters on the Web: Hype or Not?
I have written before about long sales copy on the web. But I have more to say on the subject.
Stop Sabotaging Your Sales
Do your web pages, sales letters or personal presentations include subtle distractions that unnecessarily cause you to lose sales?
6 Design Flaws Newbie Web Designers Make: Fool Everyone Into Thinking You Know What Youre Doing
Even if you're not an accomplished webmaster you can still have a professional looking website. You may be like I was five years ago-you're teaching yourself web design and you're starting to catch on to that HTML stuff. You're so excited about your new bag of tricks-but slow down partner, sometimes less is more. In fact the only time more is more is when it concerns chocolate cheesecake or something like that. (I can never get enough chocolate!)
Web Advertising: 10 Little Known Tricks To Help Convert Your Traffics To Buying Customers
You may not believe it, but people still judge things by their appearances.
Three Things You Must Do When Designing and Building Your Small Business Website
If you are going to have a web presence for your small business, it only makes sense that it should actually help you get more business. In order to do so, your website design should focus on performing only one function ? and that's to convey your sales message to your site visitors in an effective and efficient manner.
Excellently Constructed Websites
Want to see an excellently constructed website? As a writer I found one of my favorite writers: (Paulo Coelho) has a site that could inspire anyone who wants to create a more humanistic presence on the Web.
Do You Hate Your Website? Web Site Sales To Hit $316 Billion Over The Next 6 Years
What dollar amount does your web site contribute to this $316 billion dollar trend?
Don?t Put Your Slogan in the Title Tag - Optimize Your Web Pages
Don't just put your slogan in the title tag when you formulate the copy of your website. The formulation of the title tag is the most important single aspect when you fine-tune your website:
Power of Squeeze Pages for Realtors
Squeeze pages are a very hot topic in the internet marketing scene. What a squeeze page is is a page that is built to get someone to take an action. You have a newsletter but visitors to your site are not subscribing to it enough for your liking so what you do is on each page of your site you offer some kind of freebie, lets say on your buyers page you can offer to send the kind of listings that the person is looking for (if your MLS offers the service this may be very very easy to do) or maybe on a page for sellers you could offer a free download of a "Make more money be properly preparing your home to sell".
Orient Your First-time Web Site Visitor
Imagine spinning someone around so profoundly and for so long that when you finally tell them to open their eyes, they ask "Where am I?" not knowing if they are even on the same continent they started from. When someone comes to your web site from a search engine or through a link from another site, it's like that for them. They may have little or no context within which to understand your home page - or another page deep within your site that they've landed on.
Top Ten Ways to Increase Web Sales - Part 2
You have only 10 seconds to impress your potential buyer.
See, works every time. Seriously now, for some reason people keep leaving your website and you can't figure out why. Try putting a "Click Here" button at the bottom of your page that does not specify where it will redirect your customer to. This link should lead to a more interesting page; one that you feel should not be missed. It is amazing that people fall for this, no matter how bored they are on your site, with a "Click Here" button; chances are many people will push it just to see what happens. Some people even get a little deceptive and play mind games by putting a "Don't Click Here" button on their page. OF COURSE you'll click a "Don't Click Here," it is human nature.
Transforming A Site From Good To Excellent
One of the challenges of moving a web site up from good to excellent is transforming it from just a bunch of web pages and graphics to an interactive experience. Another term for this is community - a place where people can come to communicate with others. The very best web sites have mastered this transformation, thus attracting return visitors again and again.
Why You Should Hire a Professional Website Designer
Your web site should always adhere to standards!
Its No Good Having A Killer Product If You Dont Have A Killer Website
Read the title of this article over a couple of times in your head so it really starts to sink in.