About us Privacy Disclaimer Contact us
FAQ Help Advertising Feedback
Home Sitemap Search Donate us

  Home > Computer & I'net > Enable SSI...

   Browse by title articles:
   What is hot:

Enable SSI

Deny via IP

Change default dir page

Redirects

Directory on/off

Mime Types

Cellpadding & Cellspacing
Six Golden Rules of a Pay Per Click Marketing Campaign
Does The Color of Your Site Matter?
PHP Automated Thumbnails
Prev articles1 2 3Next articles



Enable SSI


Computer & I'net articlesEnable SSI

by David Stanley    



If your host supports the use of htaccess but not the use of SSI, there is probably very good reason for it. Please check with your host before doing this procedure.

AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes

The first line states that pages with an extension of shtml are valid files.
The second line adds a "handler" which is the actual SSI stuff. Any file with the shtml extension must be parsed by the server.
The third line makes it all mesh together on the server.

That's it. Now any pages you create on your site with the shtml extension will be able to use SSI coding.

What about using SSI on .html extensions?
Don't feel like renaming a bunch of files over to shtml extensions? Then try this instead :

AddType text/html .shtml .html .htm
AddHandler server-parsed .shtml .html .htm
Options Indexes FollowSymLinks Includes

A bit of caution on that last addition though. This will force ALL pages on your site with an html extension to be sent into the server for parsing even if it contains SSI commands or not. The extra time to do the parsing action is transparent to the human eye, but it may bog the server down doing all these extra commands when it isn't required.




-----------------
Article by David Stanley. Visit his site http://www.htmlite.com. Reprinted with permission.




Articles

Auto & Trucks

Business

Computer & I'net

  ·General

Apache

  ·CSS

  ·Database

  ·Hardware

  ·HTML

  ·Javascript&DHTML

  ·Linux

  ·MySQL

  ·Operating System

  ·Perl / CGI

  ·PHP

  ·Programming

  ·Publishing

  ·Search Engines

  ·Software Problems

  ·SSI

  ·Tips & Tricks

  ·Utilities

  ·Web Design

Family

Food & Drink

Gardening

Health

Other

Pets

Psychology

Spiritual

Travel

Women

 Calculators

Investment


  Disclaimer | Privacy | Terms of useCopyright © 2004 Nice2know.com