{"id":8220,"date":"2019-04-15T15:18:15","date_gmt":"2019-04-15T13:18:15","guid":{"rendered":"http:\/\/www.beseit.net\/?p=8220"},"modified":"2019-04-15T15:18:15","modified_gmt":"2019-04-15T13:18:15","slug":"com-visualitzar-els-directoris-amb-htaccess","status":"publish","type":"post","link":"https:\/\/www.beseit.net\/?p=8220","title":{"rendered":"Com visualitzar els directoris amb .htaccess"},"content":{"rendered":"<h2>How do I enable directory listings for a folder on my website?<\/h2>\n<div id=\"mainbar\">\n<p>If a directory doesn&#8217;t contain an <a href=\"https:\/\/support.tigertech.net\/index-file-names\">index file<\/a> (a file named &#8220;index.html&#8221;, &#8220;index.htm&#8221;, &#8220;index.php&#8221;, etc.), Web servers will normally show an error message if someone uses a Web browser to visit the URL address of that directory.<\/p>\n<p>This provides security for your files: it prevents strangers from viewing the names of all files in a directory and snooping through them, possibly finding files that are intended to be private.<\/p>\n<p>However, if you actually <strong>want<\/strong> your site visitors to be able to see all the files in a directory, you can do that by placing a file named <a href=\"https:\/\/support.tigertech.net\/htaccess-topic\">.htaccess<\/a> in the directory. The file should contain this line of text:<\/p>\n<blockquote>\n<pre>Options +Indexes\r\n<\/pre>\n<\/blockquote>\n<p>(This command is explained in the <a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/core.html.en#options\">Apache Web server documentation<\/a>.)<\/p>\n<p>After you do that (and also remove any <a href=\"https:\/\/support.tigertech.net\/index-file-names\">index file<\/a> such as &#8220;index.html&#8221; from the directory), anyone visiting the address of the directory will be able to view a list of all files in it and click on the individual files to open them.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How do I enable directory listings for a folder on my website? If a directory doesn&#8217;t contain an index file (a file named &#8220;index.html&#8221;, &#8220;index.htm&#8221;, &#8220;index.php&#8221;, etc.), Web servers will normally show an error message if someone uses a Web &hellip; <a href=\"https:\/\/www.beseit.net\/?p=8220\">Continua llegint <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8220","post","type-post","status-publish","format-standard","hentry","category-bloc-de-notes"],"_links":{"self":[{"href":"https:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/posts\/8220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beseit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8220"}],"version-history":[{"count":1,"href":"https:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/posts\/8220\/revisions"}],"predecessor-version":[{"id":8221,"href":"https:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/posts\/8220\/revisions\/8221"}],"wp:attachment":[{"href":"https:\/\/www.beseit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beseit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beseit.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}