Wordpress Folder Protection Error

Discussion in 'Setting-up protection' started by zimsolve, Jun 16, 2008.

  1. zimsolve

    zimsolve New Member

    Joined:
    Apr 5, 2007
    Messages:
    21
    Hi,

    I installed wordpress on my server at ...com/members and my amember
    at ...com/amember. I'm trying to protect my wordpress folder /members
    with the "new_rewrite", but it gives me this error:

    File exists and contains non-aMember code unmodifiable
    by aMember. If you don't need this file, delete it and aMember will
    automatically create a new aMember compatible .htaccess file to
    replace it.


    I also installed the wordpress plugin and activated it.

    Any ideas?
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Your wordpress directory already has a .htaccess file that amember does not want to write over. You can change it to htaccess.txt and try the protection again in amember and should be ok.

    David
  3. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Another consideration is do you want to protect the ENTIRE blog or just some of the content?

    If you only want to protect some of the content, leave the blog folder unprotected and use the wordpress plugin + user level protection plugin (free wordpress addon)
  4. karnesb

    karnesb New Member

    Joined:
    May 25, 2008
    Messages:
    26
    Backup original .htaccess file

    zimsolve,

    I just faced a similar challenge. Luckily backed up my original .htaccess file first to .htaccess_orig Good thing I did, because once amember wrote it's own .htaccess file I was only able to log in to the protected blog directory and get it to format correctly. When I clicked on any of my page links, or blog entry titles (to go directly to the blog's unique page / file), I got a WordPress error message stating the page didn't exist.

    Now... that could also be unique to me because I have 2 WordPress blogs running on the same server. Each has it's own SQL database and install, but the fact that they both exist on the same server may be interacting oddly with the amember files/ setup. So... after I did a few tests, I realized all I had to do was open the .htaccess_orig file containing the WordPress security info, copy the few lines of text therein, open the .htaccess created by amember, paste the .htaccess_orig code at the top (above the existing code) and save. All is working fine now.

    Best,
    Barbara
  5. zimsolve

    zimsolve New Member

    Joined:
    Apr 5, 2007
    Messages:
    21
    I still can't get this to work...

    The .htaccess I have on my wp-blog is:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /members/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /members/index.php [L]
    </IfModule>

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /members/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /members/index.php [L]
    </IfModule>

    # END WordPress

    Any idea on how to get this to work?
  6. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    If you rename the .htaccess file what happens?
    Do you have it set for SEO? If you are using amember to protect the directory, then SEO isn't needed since the spiders can't get in.

    David
  7. Scot

    Scot New Member

    Joined:
    Jul 2, 2008
    Messages:
    3
    This also worked for me. The WordPress part needs to be at the TOP of the file, as noted. I put it at the bottom first and it failed.

    This is with folder protection on the WordPress directory, not the WordPress Plugin.

    You would think this could be in the manual...

Share This Page