Server Side Includes SSI - A Web Designer s Best Friend
As a web designer we know that frames are very bad for search engine optimization because it rids the code in the page source. So when Google and other bots trying looking through your web page all it sees is the frames. That's where server side includes come in handy. When you add a server side include to a page it cleans up the code while your working however when a bot searches your site it will appear as if that include is fully there, html code and all.
The Benefits of Server Side Includes
- Cleans up html coding for easy editing
- Allows for a single update that runs across all pages like a frame
- Quick download times because that code was already loaded
- Works on all platforms including .asp, .php and .html
- Easy for beginner designers.
How to use Server Side Includes (SSI)
Lets say you want to build a website that has the same navigation bar on every page (which most websites have). You are going to need two files, a main index page and a header page or navigation page. Make sure that the navigation page has no
or tags, for includes you only need the main content html.Now to place this include into the main index page you need to add this code replacing "nav.html"
You code will should look like this:
Yahoo To Offer Page Summaries Instead on Search Results - Internet Search Engine Database
It's Newsbeat's Odd Box with Dominic Byrne. - BBC News
BBC News It's Newsbeat's Odd Box with Dominic Byrne. BBC News, UK - This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your ...