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

WebBadAss

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

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

Directory Indexing in WordPress

February 8, 2018 By admin

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

Recent Posts

  • Does Apple iOS 15’s visual lookup work on your device?
  • Running iPhone Migration/Setup Checklist
  • Piggy
  • Apple Watch Color Poll
  • Good Free Stock Photography

Categories

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

Ads

 
May 2023
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  
« Nov    

My Facebook Page