Server-Side Includes (SSI)


A Server-Side Include (SSI) is a type of HTML comment that instructs a web server to dynamically generate elements of a web page before it sends the web page to a browser or a search engine spider. The key item to remember is that a web server constructs a web page before it sends the web page to the search engines. Therefore, any page built with SSIs must contain the most important elements of a search engine “friendly page: keyword-rich text and a navigation scheme that the search engine spiders can follow.

Figure 3.17 outlines how web pages with SSI comments are presented to the search engines.

Figure 3.17. Web pages constructed using SSIs are created in the web server first, then presented to the search engines. As long as fully constructed pages are optimized, they can appear at the top of search engine results.

graphics/03fig17.gif

Web designers can place any type of element inside an include file. The most common items to use as include files are mastheads, navigation elements, and content.

To make SSI web pages search engine friendly, the fully constructed pages should contain keyword-rich text in the title tags, meta tags, visible body text, and alternative text. If a web developer inserts a navigation scheme through SSI, make sure the navigation scheme is spider friendly. When in doubt, create two forms of navigation: one for your target audience and one that the search engine spiders can follow. A set of text links at the bottom of every page can increase a site's search engine visibility.

Web pages that use SSIs generally have a file extension of .shml or .shtm. For example, if the fictional TranquiliTeas site used a SSI as part of its design, the oolong tea page URL would look like the following:

www.tranquiliteasorganic.com/oolongtea.shtml

Warning

graphics/icon01.gif

One of the main problems with a web page that uses multiple SSIs is download time. When a search engine spider requests a page from a server, the server should be able to present the spider with a fully constructed web page as quickly as possible. Quite often, a server can take a considerable amount of time to construct a page. As a result, the spider might "time out" and leave the server without recording the information on a web page. This is one of the technical reasons that search engines do not include all web pages in their indices.


Because this URL contains none of the stop characters that a typical dynamic URL contains (?, &, $, =, +, or %), the URL is search engine friendly.



Search Engine Visibility
Search Engine Visibility (2nd Edition)
ISBN: 0321503244
EAN: 2147483647
Year: 2003
Pages: 111
Authors: Shari Thurow

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net