Saturday, September 08, 2012

Enabling Serverside Includes on WAMP

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

No comments:

[Imported from Blogdrive]Online Virus Scanners

Online Virus Scanners Virus Scanners are no longer difficult to install, tedious to configure. There are easy to use Online Virus Scanne...