Folder Protection Exception

Discussion in 'Setting-up protection' started by ntsmedia, Nov 8, 2018.

  1. ntsmedia

    ntsmedia aMember Pro Customer

    Joined:
    Dec 11, 2006
    Messages:
    16
    I have an entire Wordpress directory protected with aMember (NewRewrite method) but find that I need to have one specific folder within the /wp-content directory unprotected.

    Is it possible to add a rule in the htaccess file for that without messing up the rest of the protection settings?

    Thanks,
    John H.
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello John,

    Yes, it is possible to do. In your directory (that you want to exclude) you need to create file .htaccess with content:
    Code:
    RewriteEngine Off
    It should do the job.

    Best Regards.
    relapse likes this.
  3. ntsmedia

    ntsmedia aMember Pro Customer

    Joined:
    Dec 11, 2006
    Messages:
    16
    Many Thanks! Works perfectly!

Share This Page