Posted by : Deepak Vasudevan Saturday, September 08, 2012

WAMPS (Windows Apache MySQL PHP with SSL) is a terrific server that you can use on your desktop with a powerful database and amazing webserver with scripting/programming abilities. However the default configuration prevents SHTML pages from being served.

Here is the quickest layman's workaround for the same. Create a simple .htaccess file in the www folder of WAMPs with the following content


# Enable Server Side Includes
Options +Includes

# Configure file extensions for SSI
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

Now create a test page like index.shtml with the following contents:




You should now see a parsed output like below on the browser when requesting the page:

Saturday, 08-Sep-2012 12:18:19 Eastern Daylight Time

Popular Post

Blogger templates

Labels

Blog Archive

Followers

Blog Archive

Powered by Blogger.

- Copyright © Lavanya Deepak -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -