Lunarpages Web Hosting Forum

Learn More About Lunarpages Hosting => Web Hosting Tutorials, FAQs and Resources => Topic started by: Mitch on August 26, 2009, 09:09:11 AM

Title: Beginner Help! - Easier Way to Edit Static Content Using SSI
Post by: Mitch on August 26, 2009, 09:09:11 AM
Just added a great new tutorial to the web hosting wiki, and wanted to make sure I shared word about it here.  This one in a kind of introduction to using Server Side Includes (SSI) to easily edit content that stays static across your entire web site layout.  It also comes in handy when you have a series of navigational links to edit - now instead of editing the one link on all of your pages, you can get away with updating one link on one page, and have the changes show on all of them.

Here is a teaser of the web hosting wiki post...

Quote
When working on a regular HTML based web site, you might often notice that you need to insert the same blocks of information again and again. For example, your web site’s basic navigation links (such as home, about me, my projects, etc) might be pasted in every single page that you create. Editing and updating these links can quickly become a pain if you get to many to work with. What is a webmaster to do? By using Server Side Includes (SSI) you can point every page to one location where your navigation is stored.

Read More About the Easier Way to Edit Static Content Using SSI! (http://wiki.lunarpages.com/Easier_Way_to_Edit_Static_Content_Using_SSI)

Hope you enjoy and find this helpful!  :thumb:
Title: Re: Beginner Help! - Easier Way to Edit Static Content Using SSI
Post by: webweaver on August 26, 2009, 02:34:31 PM
Great tutorial. 

Since so many people expect the web pages to end in just .html instead of the shtml, would it be worthwhile to add to the tutorial the way to edit the .htaccess file to allow html pages to be treated as shtml? Since the shtml files will be parsed anyway, it should not add any load to the server, should it?  It does assume that all your pages need the included files, but I think most of our web pages would need the navigation, etc.
Title: Re: Beginner Help! - Easier Way to Edit Static Content Using SSI
Post by: Mitch on August 27, 2009, 03:42:26 AM
Yeah, I plan on adding one in the future - right now, mainly wanted to get that one main topic covered.  Thanks though for the feedback, appreciate it!
Title: Re: Beginner Help! - Easier Way to Edit Static Content Using SSI
Post by: Mitch on August 28, 2009, 06:22:18 AM
Here is what you asked for:

Use .html on SSI Web Pages (http://wiki.lunarpages.com/SSI_on_html_Web_Pages)

Enjoy!
Title: Re: Beginner Help! - Easier Way to Edit Static Content Using SSI
Post by: webweaver on August 28, 2009, 01:39:55 PM
Mitch,

You are the BEST!  The lunarpage forums have almost always been able to solve any problem I have.  :clap:

This is because of lunar staff like you  :yey:  and because of folks like Dr. Phil  :yep:  and others who take the time to help us all out when we lose our way.   :bounce:



Webweaver
Title: Re: Beginner Help! - Easier Way to Edit Static Content Using SSI
Post by: Mitch on August 31, 2009, 04:58:54 AM
You are more than welcome!  :yey: :yey: :yey: