MANAGED SERVICES RESOURCE WEB SITE  
  MOREnet logo
Home | E-mail Services | Web Site Management | Managed CMS | Managed LMS | SecondWeb | SSL Certificates | Manager Application |
 Home >  Web Site Management >  Apache Web Server Resources >  Custom Headers and Footers
     
Apache Web
Server Resources
 
     
  Apache Web Server  
  Custom Headers/Footers  
  Server Side Include (SSI)  
  Web Access Controller  
  User Cookie Logging  
     

View the printer friendly version of this document

Custom Headers & Footers

Revised: August 01, 2011

Overview

kinetic applications and web pages provided by MOREnet (Analog web statistics, kinetic Service Statistics, etc.) use standard headers and footers. You can customize the header and footer pages in your own web space by including a few brief statements. Standard headers and footers provide both a unique identity for your website and a consistent look and feel for pages displayed there while maintaining ease of use.

The /custom directory on your website includes head.html and foot.html files. MOREnet strongly recommends that you use them to set up global commands for standardized web page headers and footers.

Before you begin you must have:

  1. Web publishing permission to publish files in the root directory of your website.
  2. Any graphics required for header/footer files.

Standard Header

Complete these steps to modify the standard header:

  1. Use your FTP client to login to the FTP server.
  2. Navigate to the /www/custom directory.
  3. Open the head.html file.
  4. Edit the head.html file to include words, images and colors you want to have displayed as the header for pages in your Web space.
  5. Save the head.html file.

Do the following to make this file display as a header:

  1. Insert the tag:
  2. <!--#include virtual="/custom/head.html"-->

    instead of the <body> tag.

  3. Save the file.
  4. View the results.

Standard Footer

To create a standard footer:

  1. Use your FTP client to login to the FTP server.
  2. Navigate to the /www/custom directory.
  3. Edit the foot.html file to include words, images, colors that you wish to have displayed as the footer for pages in your Web space.
  4. Save the foot.html file.

Do the following to make this file display as a footer:

  1. Insert the tag:
  2. <!--#include virtual="/custom/foot.html"-->

    instead of the </body> tag.

  3. Save the file.
  4. View the results.

Custom Headers and Footers

MOREnet supplied applications such as the Web Access Controller and the Search Engine will attempt to use headers and footers from their respective subdirectories in the ./custom/ directory. You may choose to replace or modify the headers and footers they use. These MOREnet-provided applications look in the following subdirectories to find the headers and footers they use:

  • Web Statistics and kinetic Service Statistics --   ./custom/reports/
  • Search Engine --   ./custom/search/

If they cannot find these headers and footers, they will use your site's standard header and footer ( ./custom/head.html and ./custom/foot.html ).

If you want to create custom headers and footers for these applications, create a subdirectory under the /www/custom directory. The directory should be named as shown in the list above for the application to recognize them. Then, within the directory you created, make and save a head.html file.

For example, to create a different header for the reports, create the following directory (if it does not already exist):

/www/custom/reports/head.html

Next, again within the directory you created, make and save a foot.html file.

For example, to create a different footer for the reports, create the following directory (if it does not already exist):

/www/custom/reports/foot.html

Additional subdirectories can be created for other sections of the web site. Within these directories, head.html and foot.html files may be created for use by other pages or sections. You are not limited to using the names head.html and foot.html. However, only these two file names are recognized by the MOREnet applications and by selective headers/footers (see below).


Selective Headers and Footers

Notice: Selective headers and footers will be discountinued on January 31st, 2010. They are being discontinued due to lack of use.

Selective headers and footers are also available to web sites hosted by the kinetic Service. A selective header/footer first looks in the ./custom/ directory for a subdirectory with the specified name. If it finds this directory, it uses the head.html or foot.html file found within. If it does not find the subdirectory or the files, it next looks in the ./custom/ directory for them.

To use a selective header and/or footer in a web page, first create a subdirectory within the ./custom directory. Then create a head.html and foot.html file therein.

For example, for the "About Us" section of your web site, create the following:

./custom/aboutUs/
./custom/aboutUs/head.html
./custom/aboutUs/foot.html

To use these customized header/footer files in a web page, insert the following line at the top of a web page...

<!--#include virtual="/cgi/head.cgi?aboutUs"-->
...and the following line at the bottom of the web page...
<!--#include virtual="/cgi/foot.cgi?aboutUs"-->