• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

WebBadAss

Food, Films, Watches, cats and fun...

  • Web Tools
  • WordPress
  • Cats
    • Star
    • Sadie
  • Recipes
  • Computer Stuff
  • Email me
  • Show Search
Hide Search

Directory Indexing in WordPress

admin · February 8, 2018 ·

Just plunk this line in there!

Indexing is an option that allows the contents of a directory to be displayed in the browser when the directory does not contain an index page.

WordPress and many of its security plugins disable this to prevent access to core wordpress files stored in the root directory of your wordpress site.

Sometimes though you need to allow access to a directory (if only for a short while) and to do that you need to go around WordPress – To do that you just plunk the link below into your .htaccess file and you are good to go.

Note: It is recommended (not just by me but the whole wordpress community) that you remove or disable this option when it is not needed.

To DISABLE Directory Browsing or Indexing

Type or copy and past the following line of text in to your blank file.
Note: I add the work “All” so that every folder in that directory follows the same rule.

Options All -Indexes

To ENABLE Directory Browsing or Indexing

You can reactivate it by adding the following line to your .htaccess file:

Options +Indexes

Once this is added, the directory will fully index again.

Filed Under: Web Sites, Web Tools

Primary Sidebar

AI Corner

Freepik.com

Freepik.com – has free tools but it aint free or even cheap

Make virtual models for branded products

Vmake.ai – virtual models and label composition for products

studio.youtube.com – royalty free music from youtube

Synthesia.io – turn text to video in minutes

Magicstudio.com can remove anything from photos

Categories

  • AI Corner
  • Cats
  • Computer Stuff
  • Food
  • Fun
  • Movies
  • Pictures
  • Portfolio
  • Recipes
  • Watches
  • Web Sites
  • Web Tools
  • Wordpress

Footer

Facebook Page Widget

Our Facebook Page

My Facebook Page

Copyright © 2025 · WebBadAss.com · Log in

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with our terms.OkNoRead more