YOU NEED SSI RIGHT NOW!



Get Web Design Tips and Tricks on mps-web-design.com. YOU NEED SSI RIGHT NOW! topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.

I learned of SSI (Server Side Includes) long before I built
my current site. Since it seemed the only way to go, I checked
it out once again for the new site to be.

What SSI amounts to is creating a new page for any elements
common to all pages on your site. Then ask the server to
include these pages whenever main pages are requested.

For example, build a regular HTML page containing all the
content, including graphics, as is often used in the left column
of a page as the basis of navigation. Then, instead of adding
this content to each page, simply include the file. And hey,
it's super. If you need to make a change, you make it only
once, instead of on every page on your site.

SSI Slows Page Downloads?

What prevented me initially from using SSI were notes I read
regards increasing page download time. Each page using included
files needs to parsed (read) by the server to find any files to
be included. Being an absolute fanatic about minimizing page
download speed, I passed. Bad mistake.

Updating Multiple Pages Chews Up Time

Six month later, changing a single menu item was taking
hours. I decided to ignore the page download time and go.
But I ran into another snag. Pages with includes need the
SHTML extension, else the server won't parse them. (An S
in front of HTML.)

Switching From HTML to SHTML Busts Links

Nuts. I already had lots of incoming links. Since I didn't
want to bust them by changing file names, I passed once again.

I had heard people speak of ways in which a server in some
cases could be instructed to treat HTML pages as SHTML pages.
But I didn't check it out. Another bad mistake.

The Perfect Solution

Many months later I ran across the following code. Add
these lines to the top of your .htaccess file, and all existing
HTML files will be parsed just as if they had the .SHTML
extension. Neat. No changes in file names, which means
no busted incoming links.

Options Includes
AddType text/html .html
AddHandler server-parsed .html

.htaccess is a hidden file in the root directory on your
server. It is helpful in doing many things, and can be located
elsewhere as needed, but for now let's focus on the above.

In WS_FTP, when you type -al into the blank field to the
right, this file name will become visible. The best plan is to
download the file, add the above code, then upload and overwrite
the original. (The reason for downloading first is to be
certain you hold whatever the file may already contain.)

Creating Files

What I did next was create a file, yleftnav.html, containing
all the content in the left column of a page. Then on each
page, I replaced the content in that column with the following.



Given the three lines above in the .htaccess file, each .HTML
file is parsed for the include command. When found, the content
of the file is included in the page at that point. You can see
the results by viewing the source for one of my pages. And you
can view the file included with ...



The display of this page will be distorted, but it works fine
when constrained by the first cell/column on each site page.

I'm also using ybotnav.html for the text links and contact
info at the bottom of each page. Anything repeated on most or
all pages can be handled in this way.

Finally Getting To It

I continued to avoid the chore for many months. And when
I did get to it, hours disappeared quickly, for by then I had
more
pages.

But hey, I do love it. And there's good news besides.
Those notes regards slowing page downloads (they're still
around), appear to have applied in an earlier time when servers
were slower. I haven't detected any increase in the download
time for the pages on my site.

Get to this right now, before your site grows even larger.
Whatever time it takes will be saved many times over on future
changes required.

Test First

Before getting carried away, be sure to test to see that
whatever code you choose works properly on your host server. If
it does not, and your host can't help you, then you may be stuck
with renaming page name extensions to .SHTML. Which also means
changing links internal to your site. And losing any links to
your site. (Even this option isn't available on all hosts.)

An Alternative

Here is another include command I am not using on my site.
It assumes all files to be included are in /includes/, a
subdirectory within the directory containing your pages.



Since my site layout is simple, and includes only three
subdirectories for pages, I simply uploaded the files to be
included to these three directories, and to the root directory.
For me, this is a great solution for it takes only minutes to
upload four copies. You might do better, however, with the
above.

Further Resources

What triggered me into action was Jennifer Johnson's
article, 'How To Avoid Website Growing Pains.' She's been
trying to talk me into using SSI for years. I should have
listened to her and got to it sooner. (And so should you!)
Here's a link to her article.



Here's a page from Webopedia given a search on SSI. Lots
of great info referenced here. Follow the link to Yahoo for
a couple more. As a reminder, that bit about slowing download
speed is included in one of the referenced articles. I'd ignore
this, for I found no degradation at all.



Wrapping Up

I should have done this years ago. Do it now. Or you'll be
saying the same thing in a year or so. Honest, you will!



QuitSmokingRightNow. - Quit smoking right now without patches, pills or gums, and without gaining any extra weight - guaranteed.
Feed Blaster - Advertising Revolution. - Your ad right to the screens of millions in 15 minutes with feed blaster!

Lets face it, when a visitor does arrive it only follows that we should do our best to help them see the value in our website, no?

Welcome new visitor, here is our feed, blah blah... Can't we do better then that?

I see a lot of variations on the Welcome new visitor, here is our feed type of thing when I arrive at blogs and such these days. Sometimes this gets customized if the site determines that I am a "Googler" (visiting from a search engine) and then offers me some piece of text to try and make me become a passionate user of their site.

This strategy never makes me a passionate user.

What does work is when I read the page in question and then navigate around the site and find more great content.

So the trick should be to make great-content discovery the goal.

Welcome Googler, let us help you out

Here we present one solution that works for helping people discover your site. As a side effect it will increase your pageviews in a proper, natural way. (We have a whole pile of other solutions for this, however that manuscript post isn't quite ready yet.)

  1. Check referer string
  2. If search engine, grab query text
  3. Do a full text search on your content to find other articles on your site that are related to their search query
  4. Pass the resulting list to the reader in a user friendly way
  5. Maybe keep that list persistent for the session, unless they close it

What we have done is created a custom, on-the-fly navigation system based on their search query! This little widget should work to keep them poking around your site.

Placement etc.

We've been using this on several sites now (along with some other ideas alluded to above) and it works. Pageviews per user go up. Bounce rate falls (more on that in the future too).

We have had to play with the placement of this box: top of the page? Floated to the right/left of the main page content? Following them down the page (with js)?

As they say, your mileage may vary, but chances are you will get more mileage out of more readers, and that is a good sticky thing.



Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79


More Articles:


1. Make your Brochure Stay on Top
Why do you need to have the best brochures? The answer of course is yes without any doubts. You need to leave your customers with a lasting impression that will keep them hanging with your services. Again you will ask, why do you need to have a brochure for your company and ad? You need it to have it so that you will leave your customers with a certain brand name and style. This is significant to keep your product easily remembered by the people. Brochures make you different from the others in…

2. Emphasing a Product with Monochrome Graphics By Ric Reynolds
Nothing stands out better on a website then a product image in full color while the rest of the image and site are monochrome (shades of gray).Let me give you an example of what I mean. Let's imagine that you have a new client who is a musician, and they just cut their first music CD. You have someone take a high resolution digital photo of your new client holding the CD. With me so far?Open the high resolution digital photo in your graphics software program and carefully outline just the prod…

3. Web Site Optimization: How To Speed Up Your Web Site By Minimizing Your GIF and PNG Image "Bit-Depth"
Web Site Optimization: How To Speed Up Your Web Site By Minimizing Your GIF and PNG Image 'Bit-Depth'Are bloated images slowing down your web site and causing you lost business? Images comprise over 50% of the average web page so putting them on a diet is essential to improving web performance. One of the best ways to optimize GIFs and PNGs is to minimize the “bit-depth” or the number of colors within your images.For palette-based formats like GIF and PNG, file size is directly related to the si…

4. How to ensure your website is accessible and usable
Having an accessible website is not just a nicety, but a must have. Although there are still issues with inconsistent display of content across browsers, matters are much better than they have been in the past. This means that there is no excuse not to bear in mind accessibility when creating and updating your site. Here are some accessibility tips to bear in mind whilst creating your site: Navigation You should resist the temptation to use images or Flash for links on your site, and rather use …