Skip to content

Instantly share code, notes, and snippets.

@technoknol
Created January 22, 2014 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technoknol/8559156 to your computer and use it in GitHub Desktop.
Save technoknol/8559156 to your computer and use it in GitHub Desktop.
Disable Wordpress Directory Browsing
<?php
// To Disable directory browsing in Wordpress
// Just one line in your .htaccess file
// in your website ROOT
Options -Indexes
// ps : Don't remove any other lines. Just add above code at the END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment