[advanced search]
NamePros Domain Auction
Live Event This Thursday at 6PM EST - Prebidding open now
16 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Today's Posts Domain Services
Go Back   NamePros.Com > Design and Development > Webmaster Tutorials
User Name
Password

Closed Thread
 
Thread Tools
Old 03-26-2006, 08:56 AM   · #1
bricktowntom
New Member
 
Name: Tommy Moore
Location: Oklahoma City
Trader Rating: (0)
Join Date: Jan 2006
Posts: 3
NP$: 0.00 (Donate)
bricktowntom is an unknown quantity at this point
Planning For Growth With SSI

I wanted to share some information that can make your life so much easier as your site grows and you constantly want to add to or take away from it.

It's a long read, sorry for that and I hope that it is understandable!

==============

Designing with SSI

What is SSI?
SSI is an acronym for server side includes and what it does is allow you to make a change across hundreds or thousands of pages by editing only one file.

What is it useful for?
SSI is useful for managing your navigation, header and footer files although there are many other uses which I will touch base on later. By using ssi, you can modify your navigation menu, header or footer and the changes will be instant across every page on your side utilizing the ssi by calling it via a tag in your page.

How do I do it?
Ok, let's take a look at this page
http://www.business-opportunities-i...ucational.shtml
It looks like a complete web page but actually it uses several ssi calls to include html
from other pages.

The header is called from here
http://www.business-opportunities-i...ces/header.html

The footer is called from here
http://www.business-opportunities-i...ces/footer.html

The navigation menu is called from here
http://www.business-opportunities-i...navigation.html


You can view the source on each of those pages to see that is is just basic html with no head or body tags, you don't need those as they will be on the main page that is calling these, you don't need them more than once.

Placing the following tags on any page exactly where you want that page to appear on your new page
<!--#include virtual="header.html" -->
<!--#include virtual="navigation.html" -->
<!--#include virtual="footer.html" -->

The path in the tags above assumes that the header.html, navigation.html and footer.html are in the same folder. If your header, navigation and footer files were at the root of your domain and you were designing a page one level down you would use the tag <!--#include virtual="../header.html" -->

For this to work there are a couple of things that must happen. First your server must support ssi, most decent hosting companies do. Secondly, your pages should end with .shtml instead of .html, the server is configured to parse files ending with that extension for ssi code.

If you have existing pages you would like to add the ssi into but don't want to change the extension from .html to .shtml, you can still use it by editing your .htaccess file. If you are unsure what this file is, I would suggest not messing with it. But for those that are comfortable doing so, you can add the following to your .htaccess file

AddType application/x-httpd-php .php .html .shtml
AddType text/html .shtml
AddHandler server-parsed .shtml

This will tell the server to treat .html extensions as .shtml and the pages will be parsed for your tags. The reason it's not configured to do this automatically is because it does cause a little more work for the server but unless you are receiving massive traffic (thousands of visitors a day), you will not notice.


You can find more information about ssi here.
http://www.georgedillon.com/web/ssivar.shtml
http://www.bignosebird.com/ssi.shtml



Tom Moore


Please register or log-in into NamePros to hide ads
bricktowntom is offline   Reply With Quote
Old 03-26-2006, 09:03 AM   · #2
Gene
Biz24.com -- Are you in?
 
Gene's Avatar
 
Name: Gene
Location: Oswego, NY
Trader Rating: (99)
Join Date: Feb 2005
Posts: 4,614
NP$: 3863.60 (Donate)
Gene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond repute
Member of the Month
April 2005 Ethan Allen Fund Cancer Survivorship Baby Health Cystic Fibrosis Marrow Donor Program Parkinson's Disease Child Abuse
Thank you Tom! This is very helpful (and timely) information for me. Rep added :-)
__________________
◊ ◊ ◊.......................◊ ◊ ◊
◊ ◊ ◊..Domain Profits Club..◊ ◊ ◊
◊ ◊ ◊.......................◊ ◊ ◊
Gene is offline  
  Reply With Quote
Old 03-26-2006, 09:50 AM   · #3
primacomputer
Senior Member
 
Trader Rating: (0)
Join Date: Mar 2004
Posts: 1,404
NP$: 2705.50 (Donate)
primacomputer is a jewel in the roughprimacomputer is a jewel in the roughprimacomputer is a jewel in the rough
Excellent advice. I use include files for the navigation on any site of more than a few pages.

It's not nearly as much an epic adventure as using dream weaver templates where you modify the template, apply it to every file on the site, and then upload the entire site again, but I find it works well with my dull and efficient lifestyle
primacomputer is offline   Reply With Quote
Old 03-28-2006, 02:10 AM   · #4
J4m!3
NamePros Regular
 
J4m!3's Avatar
 
Name: Jamie
Location: Clevedon, UK
Trader Rating: (9)
Join Date: Oct 2005
Posts: 198
NP$: 25.00 (Donate)
J4m!3 will become famous soon enoughJ4m!3 will become famous soon enough
Thanks
J4m!3 is offline   Reply With Quote
Old 04-09-2006, 02:45 PM   · #5
bricktowntom
New Member
 
Name: Tommy Moore
Location: Oklahoma City
Trader Rating: (0)
Join Date: Jan 2006
Posts: 3
NP$: 0.00 (Donate)
bricktowntom is an unknown quantity at this point
Planning For Growth With SSI

Thanks for the warm welcome & acknowledgement. Tom Moore
bricktowntom is offline   Reply With Quote
Old 04-09-2006, 06:06 PM   · #6
Epic
Senior Member
 
Epic's Avatar
 
Trader Rating: (96)
Join Date: Sep 2005
Posts: 3,737
NP$: 191.34 (Donate)
Epic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond repute
SSI is great but not all hosts support it. If you're host doesn't support it, you can always use PHP includes for the same effect.
Epic is online now   Reply With Quote
Old 09-09-2006, 10:31 AM   · #7
brianwiz
NamePros Regular
 
Trader Rating: (4)
Join Date: Apr 2006
Posts: 259
NP$: 0.00 (Donate)
brianwiz is on a distinguished road
SSI is god. I use it for all my sites. Easy and nice
brianwiz is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
SocialDN.com RealTechNetwork http://www.domainate.com/y/
Advertise your business at NamePros
All times are GMT -7. The time now is 02:25 AM.


Powered by: vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0