{"id":14491,"date":"2021-10-26T15:09:29","date_gmt":"2021-10-26T15:09:29","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=14491"},"modified":"2021-12-02T12:50:36","modified_gmt":"2021-12-02T12:50:36","slug":"enable-disable-directory-listing-htaccess-directadmin","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/","title":{"rendered":"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?"},"content":{"rendered":"<p><strong>Watch this video for a step by step process on How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin<\/strong><\/p>\n<div class=\"youtube-video\" style=\"border: 1px solid #ddd;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/0ecO8d8XFxc\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<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.in\/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.in\/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.in\/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.in\/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.in\/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<p><script type=\"application\/ld+json\">{\n  \"@context\": \"http:\/\/schema.org\",\n  \"@type\": \"VideoObject\",\n  \"name\": \"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin? | MilesWeb\",\n  \"description\": \"\u2705Here's an in-depth guide on how to Enable\/Disable Directory Listing with .htaccess via DirectAdmin:  https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/ Contents of this video: 0:00 - Intro 0:23 - To Enable Directory Listing with .htaccess 1:13 - To Disable Directory Listing with .htaccess  Give a thumbs up \ud83d\udc4d if you liked this video.  Subscribe to our channel and get notified for all the latest videos.  \ud83d\udd17To know more about web hosting visit our website - https:\/\/www.milesweb.in\",\n  \"thumbnailUrl\": \"https:\/\/i.ytimg.com\/vi\/0ecO8d8XFxc\/default.jpg\",\n  \"uploadDate\": \"2021-12-02T10:10:57Z\",\n  \"duration\": \"PT2M42S\",\n  \"embedUrl\": \"https:\/\/www.youtube.com\/embed\/0ecO8d8XFxc\",\n  \"interactionCount\": \"2\"\n}<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Watch this video for a step by step process on How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin 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. [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1798,41],"tags":[627,1801,2626,2632,2628,2627],"class_list":["post-14491","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 v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\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.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\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.in\/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:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-02T12:50:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.in\/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=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/\"},\"author\":{\"name\":\"Prasad Khartadkar\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"headline\":\"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?\",\"datePublished\":\"2021-10-26T15:09:29+00:00\",\"dateModified\":\"2021-12-02T12:50:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/\"},\"wordCount\":200,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_save.png\",\"keywords\":[\".htaccess file\",\"directadmin\",\"directory listing\",\"directory listing htaccess DirectAdmin\",\"disable directory listing\",\"enable directory listing\"],\"articleSection\":[\"DirectAdmin\",\"How-Tos\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/\",\"name\":\"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_save.png\",\"datePublished\":\"2021-10-26T15:09:29+00:00\",\"dateModified\":\"2021-12-02T12:50:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/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.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/08\/Prasad-K.-1-150x150.jpg\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/08\/Prasad-K.-1-150x150.jpg\",\"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.\",\"sameAs\":[\"https:\/\/www.milesweb.in\"],\"url\":\"https:\/\/www.milesweb.in\/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.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/","og_locale":"en_US","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.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-10-26T15:09:29+00:00","article_modified_time":"2021-12-02T12:50:36+00:00","og_image":[{"url":"https:\/\/www.milesweb.in\/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","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/"},"author":{"name":"Prasad Khartadkar","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"headline":"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?","datePublished":"2021-10-26T15:09:29+00:00","dateModified":"2021-12-02T12:50:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/"},"wordCount":200,"commentCount":0,"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_save.png","keywords":[".htaccess file","directadmin","directory listing","directory listing htaccess DirectAdmin","disable directory listing","enable directory listing"],"articleSection":["DirectAdmin","How-Tos"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/","name":"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/10\/da_file_manager_htaccess_save.png","datePublished":"2021-10-26T15:09:29+00:00","dateModified":"2021-12-02T12:50:36+00:00","author":{"@id":"https:\/\/www.milesweb.in\/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.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/enable-disable-directory-listing-htaccess-directadmin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Enable\/Disable Directory Listing with .htaccess via DirectAdmin?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/08\/Prasad-K.-1-150x150.jpg","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/08\/Prasad-K.-1-150x150.jpg","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.","sameAs":["https:\/\/www.milesweb.in"],"url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=14491"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14491\/revisions"}],"predecessor-version":[{"id":14969,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14491\/revisions\/14969"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=14491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=14491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=14491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}