Hiding files except theme files in wordpress Posted on November 11, 2016 by admin Add below code at the bottom of your .htaccess file Options -Indexes