The Wayback Machine - https://web.archive.org/all/20060209233333/http://www.gmsoftwarelinks.com:80/softwarelinks-insight-What+the+Heck+is+Server+Side+HTML-section-1-id-123.html

Software Links

Software Links

Our Network Websites
real estate links
insurance guide
software links
health links
travel links
What the Heck is Server Side HTML?
Publish Date : 1/11/2006 6:25:41 PM   Source : Robert Plank

If you're stuck in the dark ages and are still editing the pages of your web site by hand, there's an easy way to change the look of your web site on a moment's notice, by editing only one file.

I know, there are all kinds of brand new blogging scripts, forums, CMSes, and other stuff to make your site easy to update. But on the other hand there are just as many desktop-based programs that churn out thousands of static HTML files for you to put on your server.

What do you do when you have to change these files later? Edit them by hand, one at a time? I don't think so.

You can save a lot of time down the road using Server Side Includes (SSI).

The point of using Server Side HTML is so you can include other pages on your regular HTML pages, things like a list of links you regularly update OR a header and footer.

Try it out. Take one of those static HTML pages on your site and rename it to something like "filename.shtml" instead of "filename.html." All we've done is changed the "html" at the end to "shtml."

Now, take the part of that site you want to appear on every page (the header graphic, link sidebar, etc.), copy and paste that part and save it into a file named "header.shtml." REMOVE that text from your filename.shtml file.

Now, in the filename.shtml file, place this at the top:

[!--#include virtual="/header.shtml"--]

(IMPORTANT: Replace the brackets [ and ] above with the greater-than and less-than "HTML" brackets... hold shift and press the "comma" and "period" keys on your keyboard.)

Upload filename.shtml and header.shtml to your server and load header.shtml. If everything went well, the page should look exactly as it did before. The only difference is: you only need that one "include virtual" line to show the top of the page, AND to change that top HTML later on all you have to do is edit header.shtml.

If you had this sort of code on 20,000 pages of your web site all you'd have to do was edit that ONE header.shtml file, and your entire site would change as soon as you uploaded that header.shtml file.

Not bad, huh?

Now do the same thing with the bottom of your web site, only save the new file as footer.shtml and at the bottom of filename.shtml place this:

[!--#include virtual="/header.shtml"--]

Again, not that exact code... replace the hard-brackets with HTML brackets.

But wait, your fancy page generator software will only save the files as .HTM or .HTML, and specifically links to certain files. You can't just go in and edit everything to link to .SHTML files.

Htaccess to the rescue.

Place this in a new text file:

AddHandler server-parsed .shtml .html .htm

Save that as "htaccess.txt", upload to your web server, and rename that htaccess.txt file you just uploaded to ".htaccess", WITH the dot in front. Now try renaming filename.shtml to filename.html. Guess what, your server side includes now work on .html and .htm files too.

Hopefully your page generator software allows you to edit the template and place these server-side include tags in there. (If not, look into a program called BKReplaceEm.) Don't worry, the pages will look funny and broken on your hard drive but once they are sitting on your web server everything will turn out ok.

If you find yourself doing a bunch of repetitive HTML editing it might be time to look into Server Side Includes to make instant changes.

About The Author

Robert Plank

You know what else, you can use a similar bit of HTACCESS code to make PHP scripts act as HTML files. That, plus 35 more "Why Didn't I Think of Those" secrets are revealed in my upcoming ebook: http://www.affiliatebattleplan.com

articles@jumpx.com

Premium Link Partners




Become a Premium Link Partner
Premium Link Partners




Become a Premium Link Partner

More Real Estate Guides


What the Heck is Server Side HTML?        
If you're stuck in the dark ages and are still editing the pages of your web site by hand, there's an easy way to change the look of your web site on a moment's notice, by editing only one file. I know, there are all kinds of brand new...

What’s Your IQ on Basic PC Phone (VoIP) Knowledge        
Short T/F quiz T / F You can save a significant amount of money using VoIP rather than traditional telephone/cell phone calling methods. T / F The minimum requirement for VoIP is a broadband (high speed) connection. T / F VoIP security...

Your Website - Your Virtual Business Card        
To make one thing clear way ahead, without a website you will not survive on this market. And while you are at it, make sure the website is user-friendly because you will need to make changes once in a while and if only to promote some new...

Short Messaging Service (SMS) for Enterprise Messaging        
Short Messaging Service (SMS) for Enterprise Messaging SMS for Enterprise Messaging – Value added services Short message service, usually called SMS, is a globally accepted wireless service for enterprise messaging (mobile value added services)...

Should You Use a Free or Paid Blogging Service 1        
Blogging is an abbreviation of "web-logging". The simplest definition of a blog is that it is an online log that is organized in reverse chronological order. It comprises of comments, declarations, links, or anything else of interest to the blog...

Show Your Customers You Care        
I recently went to a major computer/electronics store to buy an expensive software package. I felt good that I was able to find the software at a substantial discount. But by the time I was through paying for my purchase I never wanted to come...

Spyware : An Internet Plague        
As spyware threats continue to grow the methods by which users are infected becomes less and less difficult. It no longer takes physical access to a computer nor do users have to click on an ad or email attachment to install the malicious...

Spyware Programs Are Out To Get You        
The average computer is packed with hidden software that can secretly spy on online habits. The US net provider EarthLink said it uncovered an average of 28 spyware programs on each PC scanned during the first three months of the year. There are...

Starting Your Desktop Publishing Project At The End        
The only place where you can find the beginning to start at the end is during a typical desktop publishing project. As one designer would relate, for all practical purposes, the process of culling information starts at the end in the printing...

Staying Cool When the Job Heats Up        
Jobs are heating up. We're all feeling the pinch of hiring freezes and information overload. Workplace stress is increasing right along with the workload. Headaches are turning into migraines; back pains are driving us to the chiropractor, and...

Total Results : 125  
More News (Opens in New Window) :    [1]   2   3   4   5   6   7   8   9   10   11   12   13      Next Page
Our Network Websites >>> real estate links | insurance guide | software links | health links | travel links mens clothing | bargain cruises | hotel reviews | used cars | wedding favors | extended stay hotels | condos buying tips | laptop guide | bargain holidays | best mortgage deals | dental insurance | auto insurance quotes | cheap life insurance | car insurance quotes | life insurance quotes | ireland golf vacation packages | golf vacations | ireland vacations | hawaii vacation packages | vacation packages | digital camera review | digital video camera | security camera | home security cameras | disposable cameras | digital printing | digital photo software | digital projectors | digital photo processing | surveillance cameras | electronic stores | home electronics | diet supplements | zone diet | eating disorders guide | fsbo | learn spanish | learn italian | business brokers | commercial real estate |

:: SiteWide Links :: Hotel Reviews :: discount hotel :: vacation packages : wedding favors :: mens clothing ::