Imagine my plight... I have 100+ pages on my website and I have to change my e-mail address and
copyright info on all
pages. The reason...My mail box is over-flown with junk mails.
My only option is to edit all my web pages offline and then upload each one of them again, not to mention countless errors I make in
process.
100+ pages is still a small website. Imagine what it will be like if my website had 1000+ pages?
Sounds scary right?
If you would like to avoid
kind of mess I'm in right now, you have one option. Start using "Server Side Includes (SSI)"
In technical jargon, Server Side Includes are directives which you can place into your HTML documents to execute other programs or output such data as environment variables and file statistics.
If your only intention is to manage your website more effectively and painlessly, it is more than enough if you learn one "Directive" of SSI -
"Include" directive.
In simple terms, SSI Include is a line of code which you can use in your HTML documents to include contents from other documents. In other words, change just one file (the Include file), and your ENTIRE SITE is instantly updated!
The basic syntax of an Include directive is:
Where PATH_TO is
"VIRTUAL" path to include file on your server.
Here's how to include your copyright info and navigation links using SSI Includes...
First, you need to check with your server administrator whether your server supports SSI or not. Most servers support them.
Second, you need to rename all your HTML files with extension .shtml