This a very common query which is brought up a great deal of the time.
How do I update one file to change my WHOLE website?
or
Whats the easy way to update all my pages with one change?
For example,
You have 50+ pages in your website, and want to add another button to your navigation menu. Instead of going through all 50+ pages and changing your navigation, how would you update one file to update the rest?
Well, it's a simple answer actually.
Server Side Includes (SSI).
Simply creating one file containing your HTML code for the navigation menu, and adding one line to your page, will result in an easy way to update all your files.
There are many ways, such as PHP or ASP.
PHP
for any page you want it to appear
PHP Code:
Your HTML code here
<?php include('navigation.php'); ?>
More HTML here
and inside navigation.php (same directory for this example)
PHP Code:
<div>
Whatever
</div>
ASP
ASP has the same concept, but just different coding to do say
for any page you want it to appear
Code:
HTML code here
<!--#include file="navigation.inc"-->
More HTML code here
and navigation.inc would typically contain
Code:
<div>
Whatever
</div>
Getting it to work
For the above two examples to work, the files would need to be saved in either *.asp format or *.php format, either that or you could add a line in your .htaccess file
http://www.javascriptkit.com/howto/htaccess4.shtml
That is a great tutorial for this.