{"id":441,"date":"2013-05-18T14:55:22","date_gmt":"2013-05-18T12:55:22","guid":{"rendered":"http:\/\/www.extradrm.com\/?p=441"},"modified":"2013-05-18T17:29:57","modified_gmt":"2013-05-18T15:29:57","slug":"ssi-in-htaccess-for-errordocuments-directoryindexing-seo","status":"publish","type":"post","link":"https:\/\/www.extradrm.com\/?p=441","title":{"rendered":"SSI in Htaccess for ErrorDocuments, DirectoryIndexing, SEO"},"content":{"rendered":"<p>If you are using WordPress, I&#8217;m sure you are using my AskApache Google 404 Plugin, but whatever your error pages may be, using SSI you can make them better. My 404 Error Page is handled by WordPress and PHP, but all of my other error pages (codes 4xx to 5xx) are handled using SSI.<\/p>\n<p>Notice the email note which has the subject prefilled? Thats one of the main uses for SSI, you can add forms to your errordocuments and get notified of problems which mean you can fix them.<\/p>\n<p><strong>Add this to your .htaccess for each ErrorDocument you make.<\/strong><\/p>\n<pre>ErrorDocument 503 \/errordocs\/503.html<\/pre>\n<p><strong>My <code>\/errordocs\/.htaccess<\/code><\/strong><\/p>\n<pre># turn on symlinks for rewrites and turn off SSI's ability to exec\r\nOptions None\r\nOptions SymLinksIfOwnerMatch IncludesNOEXEC\r\n\u00a0\r\n# makes files ending in .html be filtered through the INCLUDES filter before being sent to client\r\nAddOutputFilter Includes html\r\n\u00a0\r\n# this internal apache variable prevents your errordocs from allowing keep-alive connections\r\nSetEnv nokeepalive\r\n\u00a0\r\n# used to determine the time and for SSI output\r\nSetEnv TZ America\/Indianapolis\r\nSetEnv SERVER_ADMIN webmaster@askapache.com\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you are using WordPress, I&#8217;m sure you are using my AskApache Google 404 Plugin, but whatever your error pages may be, using SSI you can make them better. My 404 Error Page is&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":2843,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,31],"tags":[150,151,152,156],"youtube_video":null,"_links":{"self":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/441"}],"collection":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=441"}],"version-history":[{"count":0,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/441\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/media\/2843"}],"wp:attachment":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}