Tell Your Friends About ArticleMap.com Sign-Up Free  |Member Login  

article marketing

ArticleMap.com

Home | Computer | Software Language


Planning For Growth With SSI

By: Tommy Moore (Bricktowntom)

How do I do it?
Ok, let's take a look at this page.
http://www.business-opportunities-internetonline.com/resources/educational.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-internetonline.com/resources/header.html
The footer is called from here
http://www.business-opportunities-internetonline.com/resources/footer.html
The navigation menu is called from here
http://www.business-opportunities-internetonline.com/resources/navigation.html

You can view the source on each of those pages to see that 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.





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

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.

Article Source: http://www.articlemap.com

About the author.. Tom Moore (BricktownTom)is not a real author but is a real person, so please bear with me as I try my best to share the information that is inside my head and convey that to the written word! www.business-opportunities-internetonline.com/ If you've found this information helpful, you are free to use or republish as long as the "about the author" box remains intact and the link active.
Article Submission done by: www.articles-submit.com
Courtesy of:Affilliate Name




Please Rate this Article

 

Not yet Rated

Click the XML Icon Above to Receive Software Language Articles Via RSS!




Copyright © and All Rights Reserved.
Use of Our Service is subject to Terms of Service and Privacy Policy.



Powered by Article Dashboard