WordPress.org

Ready to get started?Download WordPress

Forums

BulletProof Security
[resolved] Allow directory listing with Bulletproof mode enabled (5 posts)

  1. stromboli
    Member
    Posted 1 year ago #

    Is there a way to allow BulletProof security to exclude one directory from the rewrite rules and list all of the files in a directory?

    For example, I want to show the files in this folder instead of redirect to a wordpress 404 page: http://mydomain.com/listitemsinthisfolder/

    When I tell bulletproof security to use "Default Mode WP Default htaccess File", I can add my exclusion and be on my happy way. However, with the secure way, none of my exclusions work.

    What is the best way to go about doing something like this?

    Thanks in advance!

    http://wordpress.org/extend/plugins/bulletproof-security/

  2. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Is the folder a physical folder outside of WordPress? If so, then the easiest/simplest way to do what you want to do is to create/add another .htaccess file in that folder. Use Notepad or Notepad++ (Do NOT use Word or WordPad) to create the .htaccess file for this folder. Save this .htaccess file with this name - special.htaccess so that you can save the file on your computer. After you have added the directive you want below to this file and save it you will be uploading the special.htaccess file to your folder and renaming it to just .htaccess.

    If you would actually like to index (show the files in that folder in a list) the files in that directory then you would use the Options directive as shown below.

    # Show files in an indexed list
    Options +Indexes

    If you would like to turn off rewriting in this folder then use the RewriteEngine directive and set it to Off. By adding this one line of code in your special.htaccess file you are turning off security in this folder. The BPS root .htaccess file will no longer apply its rules in this folder.

    # Turn Off Rewriting
    RewriteEngine Off

  3. AITpro
    Member
    Plugin Author

    Posted 12 months ago #

    Is this issue/problem resolved? If so, please resolve this thread. If not, please post a status update. Thank you.

  4. AITpro
    Member
    Plugin Author

    Posted 11 months ago #

    Is this issue/problem resolved? If so, please resolve this thread. If not, please post a status update. Thank you.

  5. AITpro
    Member
    Plugin Author

    Posted 11 months ago #

    Due to lack of response this Thread has been resolved. We still receive email notifications when a new comment is posted so if you still need additional assistance please post a comment. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.