WordPress.org

Ready to get started?Download WordPress

Forums

Securing plugins directory: index.php or .htaccess? (2 posts)

  1. deko
    Member
    Posted 4 years ago #

    I replaced the index.php in the wp-content/plugins directory with a one-line .htaccess file:

    Options All -Indexes

    Is this this safer than the index.php file:

    <?php
    // Silence is golden.
    ?>

    I've heard either will work. Other thoughts?

  2. Samuel B
    moderator
    Posted 4 years ago #

    either way works well

Topic Closed

This topic has been closed to new replies.

About this Topic