{"id":8761,"date":"2014-10-31T23:05:54","date_gmt":"2014-10-31T23:05:54","guid":{"rendered":"https:\/\/wp.okra.host\/article\/changing-index-pages\/"},"modified":"2021-03-07T14:49:28","modified_gmt":"2021-03-07T13:49:28","slug":"changing-index-pages","status":"publish","type":"ht_kb","link":"https:\/\/kb.okra.host\/de\/article\/changing-index-pages\/","title":{"rendered":"\u00c4ndern von Indexseiten"},"content":{"rendered":"<h2 id=\"overview\" >\u00dcbersicht<\/h2>\n<p>An index page is the page a Web server pulls up for a given directory if a filename is not specified. For example, http:\/\/apnscp.com\/ will scan the <a title=\"Von wo aus werden die Inhalte der Website bereitgestellt?\" href=\"https:\/\/kb.okra.host\/de\/web-content\/where-is-site-content-served-from\/\">Dokumentenstamm<\/a> sequentially looking for the first file match. If found, that page will be displayed. By default, the directory index order of precedence is (in decreasing priority): <code>index.html<\/code>, <code>index.php<\/code>, <code>index.shtml<\/code>, <code>index.htm<\/code>, <code>index.cgi<\/code>,\u00a0<code>index.pl<\/code>, and finally <code>index.jsp<\/code>. Going from left to right in the list, the first file found will serve as the directory index.<\/p>\n<h2 id=\"changing-default-value\" >Changing Default Value<\/h2>\n<p>To specify <code>home.html<\/code> as the index page such that when a user accesses http:\/\/apnscp.com\/ it would be the same as accessing http:\/\/apnscp.com\/home.html, add the following line to your\u00a0<a title=\".htaccess-Leitfaden\" href=\"https:\/\/kb.okra.host\/de\/guides\/htaccess-guide\/\">.htaccess-Datei<\/a>:<\/p>\n<pre class=\"apache code\">DirectoryIndex home.html<\/pre>\n<h2 id=\"caveats\" >Caveats<\/h2>\n<p>Directory indexes apply recursively to all sub-directories. All subdirectories will inherit these rules. In order to reset the directory index list specify a new <code>DirectoryIndex<\/code> directive through an .htaccess file to any directories that reside within the directory in which the initial <code>DirectoryIndex<\/code> is applied.<\/p>\n<p><span style=\"text-decoration: underline\">Beispiel:<\/span><br \/>\nUnder \/var\/www\/html\/.htaccess:<br \/>\n<code>DirectoryIndex home.html<\/code><\/p>\n<p>Under \/var\/www\/html\/myapp:<br \/>\n<code>DirectoryIndex index.html index.php index.shtml index.cgi<\/code><\/p>\n<p>Such a setup can yield an unmaintainable hierarchy of .htaccess files. For this reason, usage of\u00a0<code>DirectoryIndex<\/code> is discouraged.<\/p>","protected":false},"excerpt":{"rendered":"<p>Overview An index page is the page a Web server pulls up for a given directory if a filename is not specified. For example, http:\/\/apnscp.com\/ will scan the document root sequentially looking for the first file match. If found, that page will be displayed. By default, the directory index order&#8230;<\/p>","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[54],"ht-kb-tag":[],"class_list":["post-8761","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-web-content"],"_links":{"self":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/comments?post=8761"}],"version-history":[{"count":1,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8761\/revisions"}],"predecessor-version":[{"id":8762,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8761\/revisions\/8762"}],"wp:attachment":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media?parent=8761"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-category?post=8761"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=8761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}