{"id":2515,"date":"2015-01-08T10:21:19","date_gmt":"2015-01-08T08:21:19","guid":{"rendered":"http:\/\/www.extradrm.com\/?p=2515"},"modified":"2015-03-14T23:40:52","modified_gmt":"2015-03-14T21:40:52","slug":"setting-up-ssi-on-wamp","status":"publish","type":"post","link":"http:\/\/www.extradrm.com\/?p=2515","title":{"rendered":"Setting Up SSI on Wamp server on windows"},"content":{"rendered":"<h2><b>How to add SSI ( Serverside include support in WAMPSERVER )?<\/b><\/h2>\n<p><b>Server Side Includes (SSI) &#8211; Definition<\/b><\/p>\n<p>The Server Side Includes is a simple interpreted server side scripting used in HTML pages to make it more responsive web pages on web server. It is used in big websites which most parts are repetitive. SSI enables the HTML pages to add one or more files into a web page and come out with given directives. The SSI makes easy to maintain the site. For instance: If any website have numerous HTML pages with dynamic contents and each time only contents need to be change, the SSI works here. It has some commonly used code that can be re-used many times in a website.<\/p>\n<p>Open <strong>http.conf<\/strong> file from\u00a0 C:\\wamp\\bin\\apache\\Apache2.2.11\\conf :<\/p>\n<p>Then add the following code:<\/p>\n<pre>AddType text\/html .html<\/pre>\n<pre>Options +Includes<\/pre>\n<pre>AddOutputFilter INCLUDES .html<\/pre>\n<p>The above code should be above &#8220;&lt;Directory \/&gt;&#8221; in httpd.conf file<\/p>\n<p>Then find &#8220;Options Indexes FollowSymLinks&#8221; and replace it with:<\/p>\n<pre>Options +Indexes +FollowSymLinks +Includes<\/pre>\n<p>Restart wamp services and enjoy.<\/p>\n<h2>Add Handler on Apacher Sever hosting company<\/h2>\n<p>On a hoster company, add in your .htaccess the first line to activate SSI handler process :<\/p>\n<pre>AddHandler server-parsed .html\r\nErrorDocument 404 \/410.php<\/pre>\n<p><strong>How to use it :<\/strong><br \/>\nNow you can use incude calls for .html pages as decided :<\/p>\n<pre>&lt;!--#include virtual=\"includes\/header.html\"--&gt;<\/pre>\n<p lang=\"en-US\"><b>For example: <\/b><\/p>\n<p lang=\"en-US\">SHTML or ASP: &lt;!&#8211;#include virtual=&#8221;\/<strong>path_relative_to_site<\/strong>&#8221; &#8211;&gt;<\/p>\n<p lang=\"en-US\">PHP: &lt;?php include(&#8220;..\/<strong>path_relative_to_document<\/strong>&#8220;) ?&gt;<\/p>\n<p lang=\"en-US\">The above code will work as a SSI enable web page and return with the given direction on the browser.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to add SSI ( Serverside include support in WAMPSERVER )? Server Side Includes (SSI) &#8211; Definition The Server Side Includes is a simple interpreted server side scripting used in HTML pages to make&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":2850,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,23],"tags":[],"youtube_video":null,"_links":{"self":[{"href":"http:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/2515"}],"collection":[{"href":"http:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2515"}],"version-history":[{"count":0,"href":"http:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/2515\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/media\/2850"}],"wp:attachment":[{"href":"http:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2515"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}