Protected content - New rewrite exception not working

Discussion in 'aMember Pro v.4' started by mporter9, Nov 7, 2012.

  1. mporter9

    mporter9 Member

    Joined:
    Aug 25, 2012
    Messages:
    83
    Hi,

    I am currently protecting a folder on my site, but there is 1 single file inside of that folder that I need to make an exception for so anyone can access it.

    I was told to add this underneath the 'RewriteEngine On' row in my .htaccess file:

    RewriteCond %{REQUEST_URI} /xyz/folder/FileINeedAvailableToEveryone\.php
    RewriteRule ^(.*)$ -

    So I added this exception and it is still not working. When I try to access the exception URL it tells me the content is protected and wants me to login.

    Here is what part of my final .htaccess code looks like once I added the exception:

    ########### AMEMBER START #####################
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{REQUEST_URI} /xyz/folder/FileINeedAvailableToEveryone\.php
    RewriteRule ^(.*)$ -

    I thought that maybe it was because there is an extra "\" in front of the ".php" but it still isn't working. Any ideas?

Share This Page