{"id":5697,"date":"2014-04-05T05:32:49","date_gmt":"2014-04-05T05:32:49","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/05\/problem-about-trailing-slash-collection-of-common-programming-errors\/"},"modified":"2014-04-05T05:32:49","modified_gmt":"2014-04-05T05:32:49","slug":"problem-about-trailing-slash-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/05\/problem-about-trailing-slash-collection-of-common-programming-errors\/","title":{"rendered":"problem about trailing-slash-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6beddf83604db885e4f17b317840d0fa?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndoitmyway<br \/>\napache document-root trailing-slash<br \/>\nI&#8217;ve got a framework I need to work with and the server configuration file for the live version (the working one) specifies the document root like this:define(&#8216;DOCUMENT_ROOT&#8217;, $_SERVER[&#8216;DOCUMENT_ROOT&#8217;]);Now if I try running the framework on my localhost machine I keep getting a server error.HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.It doesn&#8217;t work unless I do this:define(&#8216;DOCUMENT_ROOT&#8217;, $_SERVER[&#8216;DOCUME<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>doitmyway apache document-root trailing-slash I&#8217;ve got a framework I need to work with and the server configuration file for the live version (the working one) specifies the document root like this:define(&#8216;DOCUMENT_ROOT&#8217;, $_SERVER[&#8216;DOCUMENT_ROOT&#8217;]);Now if I try running the framework on my localhost machine I keep getting a server error.HTTP Error 500 (Internal Server Error): An unexpected [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5697","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5697"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5697\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}