{"id":2895,"date":"2013-01-25T22:57:01","date_gmt":"2013-01-25T22:57:01","guid":{"rendered":"http:\/\/nycphantom.com\/journal\/?p=2895"},"modified":"2013-02-22T22:23:31","modified_gmt":"2013-02-22T22:23:32","slug":"ssi-server-side-includes","status":"publish","type":"post","link":"http:\/\/nycphantom.com\/journal\/?p=2895","title":{"rendered":"SSI - Server Side Includes"},"content":{"rendered":"<p>To include HTML (or other extension) files into another HTML file,<\/p>\n<p>&lt;!--#include VIRTUAL=\"\/filetoinclude.html\" --&gt; is the line to use.<\/p>\n<p>VIRTUAL is used when file path is not local, such as when \"\/\" is used. Otherwise, it can be replaced by FILE=\"filetoinclude.html\".<\/p>\n<p>For this to work, SSI on web server must be enabled. Most servers such as Apache CPanel default this to shtml. So, to have the Apache CPanel use html extension as the host file as well, add handler: server-parsed and extension: .html<\/p>\n<p>Included files can have any extension, supposedly.<\/p>\n<p>If the host file is php, then maybe it's better to use &lt;?php include(\"..\/leftmenu.html\"); ?&gt;<br \/>\nThe path \"..\/\" or full path \"http:\/\/....\" seems necessary, because merely \"\/leftmenu.html\" would not work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To include HTML (or other extension) files into another HTML file, &lt;!--#include VIRTUAL=\"\/filetoinclude.html\" --&gt; is the line to use. VIRTUAL is used when file path is not local, such as when \"\/\" is used. Otherwise, it can be replaced by &hellip; <a href=\"http:\/\/nycphantom.com\/journal\/?p=2895\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2895","post","type-post","status-publish","format-standard","hentry","category-technical"],"_links":{"self":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/2895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2895"}],"version-history":[{"count":3,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/2895\/revisions"}],"predecessor-version":[{"id":3084,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/2895\/revisions\/3084"}],"wp:attachment":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2895"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}