{"id":12152,"date":"2021-10-26T15:09:31","date_gmt":"2021-10-26T15:09:31","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=12152"},"modified":"2024-04-23T12:36:54","modified_gmt":"2024-04-23T11:36:54","slug":"enable-disable-directory-listing-htaccess-directadmin","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/","title":{"rendered":"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?"},"content":{"rendered":"<p>To enable or disable the directory listing, you can edit the .htaccess file via DirectAdmin. All you have to do is add a specific directive to imply the configuration.<\/p>\n<h2>To Enable Directory Listing with .htaccess<\/h2>\n<p>1. Log in to your DirectAdmin account.<\/p>\n<p>2. Create or edit the .htaccess file using the File Manager tool.<\/p>\n<p>Here&#8217;s an article that you can refer:\u00a0<a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/create-edit-htaccess-file-directadmin\/\">How to Create\/Edit .htaccess File via DirectAdmin?<\/a><\/p>\n<p>3. You will have to enter this directive at the start of the file.<\/p>\n<pre class=\"font-size:15 line-height:20 lang:default decode:true\">Options +Indexes<\/pre>\n<p>4. Once you do that,\u00a0click <strong>SAVE<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13633\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_save.png\" alt=\"\" width=\"1578\" height=\"658\" \/><\/p>\n<p>The next time you browse for the directory listing, it will display the index.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13604\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_htaccess_enable_dir_listing.jpg\" alt=\"\" width=\"643\" height=\"370\" \/><\/p>\n<h2>To Disable Directory Listing with .htaccess<\/h2>\n<p>1. Create or edit the .htaccess file using the File Manager tool.<\/p>\n<p>2. You will have to enter this directive at the start of the file.<\/p>\n<pre class=\"font-size:15 line-height:20 lang:default decode:true\">Options -Indexes<\/pre>\n<p>3. Once you do that,\u00a0click <strong>SAVE<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13636\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_save-indexes.jpg\" alt=\"\" width=\"1578\" height=\"657\" \/><\/p>\n<p>The next time you browse for the directory listing, it will display the <em>403 HTTP Forbidden Access<\/em> error.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13606\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/cp_htaccess_disable_dir_listing.jpg\" alt=\"\" width=\"568\" height=\"368\" \/><\/p>\n<p>That is how you can configure the .htaccess file via DirectAdmin to enable\/disable directory listing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To enable or disable the directory listing, you can edit the .htaccess file via DirectAdmin. All you have to do is add a specific directive to imply the configuration. To Enable Directory Listing with .htaccess 1. Log in to your DirectAdmin account. 2. Create or edit the .htaccess file using the File Manager tool. Here&#8217;s [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1777,41],"tags":[608,1780,2604,2610,2606,2605],"class_list":["post-12152","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-directadmin","category-howtos","tag-htaccess-file","tag-directadmin","tag-directory-listing","tag-directory-listing-htaccess-directadmin","tag-disable-directory-listing","tag-enable-directory-listing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?<\/title>\n<meta name=\"description\" content=\"This guide contains the steps to enable or disable the directory listing by editing the .htaccess file using the DirectAdmin panel.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?\" \/>\n<meta property=\"og:description\" content=\"This guide contains the steps to enable or disable the directory listing by editing the .htaccess file using the DirectAdmin panel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-26T15:09:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-23T11:36:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_save.png\" \/>\n<meta name=\"author\" content=\"Prasad Khartadkar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Khartadkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/\",\"name\":\"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_save.png\",\"datePublished\":\"2021-10-26T15:09:31+00:00\",\"dateModified\":\"2024-04-23T11:36:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"description\":\"This guide contains the steps to enable or disable the directory listing by editing the .htaccess file using the DirectAdmin panel.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/05\/7-add-user-to-database-min.png\",\"contentUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/05\/7-add-user-to-database-min.png\",\"width\":653,\"height\":237,\"caption\":\"add user to database\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"caption\":\"Prasad Khartadkar\"},\"description\":\"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?","description":"This guide contains the steps to enable or disable the directory listing by editing the .htaccess file using the DirectAdmin panel.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/","og_locale":"en_GB","og_type":"article","og_title":"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?","og_description":"This guide contains the steps to enable or disable the directory listing by editing the .htaccess file using the DirectAdmin panel.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-10-26T15:09:31+00:00","article_modified_time":"2024-04-23T11:36:54+00:00","og_image":[{"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_save.png","type":"","width":"","height":""}],"author":"Prasad Khartadkar","twitter_misc":{"Written by":"Prasad Khartadkar","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/","name":"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_save.png","datePublished":"2021-10-26T15:09:31+00:00","dateModified":"2024-04-23T11:36:54+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"description":"This guide contains the steps to enable or disable the directory listing by editing the .htaccess file using the DirectAdmin panel.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/05\/7-add-user-to-database-min.png","contentUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/05\/7-add-user-to-database-min.png","width":653,"height":237,"caption":"add user to database"},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","caption":"Prasad Khartadkar"},"description":"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"views":312,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=12152"}],"version-history":[{"count":3,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12152\/revisions"}],"predecessor-version":[{"id":15410,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12152\/revisions\/15410"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=12152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=12152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=12152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}