{"id":122,"date":"2022-08-09T15:42:36","date_gmt":"2022-08-09T15:42:36","guid":{"rendered":"https:\/\/help.radia.cloud\/en\/?post_type=base-de-conocimieto&#038;p=122"},"modified":"2022-08-09T15:42:37","modified_gmt":"2022-08-09T15:42:37","slug":"how-to-enable-directory-index-listings-using-htaccess","status":"publish","type":"base-de-conocimieto","link":"https:\/\/help.radia.cloud\/en\/article\/how-to-enable-directory-index-listings-using-htaccess\/","title":{"rendered":"How to enable directory index listings using .htaccess."},"content":{"rendered":"\n<p>You can configure the webserver to display file listings for directories that do not have a directory index page.<\/p>\n\n\n\n<p>By default on RADIA_ servers, when visitors go to a URL that requests a directory, such as\u00a0<a rel=\"noreferrer noopener\" href=\"http:\/\/example.net\/gallery\" target=\"_blank\">http:\/\/example.net\/gallery<\/a>, the web server looks for the default directory index page. If the directory index page does not exist, the webserver displays a \u201c403 Forbidden\u201d error message. This is because directory index listings are disabled by default for security reasons.<\/p>\n\n\n\n<p>In some cases, however, you may want to enable index listings for a directory. To do this, use a text editor to add the following line to the .htaccess file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Options +Indexes<\/code><\/pre>\n\n\n\n<p>This directive enables standard indexing, where the index listing shows only the filenames.&nbsp;<\/p>\n\n\n\n<p>You can enable directory index listings for your entire website, though for security reasons this is not recommended. If you are sure you want to do this, add the Options +Indexes directive to the .htaccess file in the public_html directory.<\/p>\n\n\n\n<p><strong>Disable directory index listings<\/strong><\/p>\n\n\n\n<p>Directory index listings are disabled by default, so you only need to explicitly disable them if they were previously enabled in an .htaccess file. To do this, use a text editor to modify the Options line in the .htaccess file as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Options -Indexes<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You can configure the webserver to display file listings for directories that do not have a directory index page. By default on RADIA_ servers, when visitors go to a URL that requests a directory, such as\u00a0http:\/\/example.net\/gallery, the web server looks for the default directory index page. If the directory index page does not exist, the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":""},"bdctema":[29],"bdcetiqueta":[53,57,56,54,55],"_links":{"self":[{"href":"https:\/\/help.radia.cloud\/en\/wp-json\/wp\/v2\/base-de-conocimieto\/122"}],"collection":[{"href":"https:\/\/help.radia.cloud\/en\/wp-json\/wp\/v2\/base-de-conocimieto"}],"about":[{"href":"https:\/\/help.radia.cloud\/en\/wp-json\/wp\/v2\/types\/base-de-conocimieto"}],"author":[{"embeddable":true,"href":"https:\/\/help.radia.cloud\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.radia.cloud\/en\/wp-json\/wp\/v2\/comments?post=122"}],"version-history":[{"count":1,"href":"https:\/\/help.radia.cloud\/en\/wp-json\/wp\/v2\/base-de-conocimieto\/122\/revisions"}],"predecessor-version":[{"id":124,"href":"https:\/\/help.radia.cloud\/en\/wp-json\/wp\/v2\/base-de-conocimieto\/122\/revisions\/124"}],"wp:attachment":[{"href":"https:\/\/help.radia.cloud\/en\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"bdctema","embeddable":true,"href":"https:\/\/help.radia.cloud\/en\/wp-json\/wp\/v2\/bdctema?post=122"},{"taxonomy":"bdcetiqueta","embeddable":true,"href":"https:\/\/help.radia.cloud\/en\/wp-json\/wp\/v2\/bdcetiqueta?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}