Wordpress and Folder Protection Issue

Discussion in 'Setting-up protection' started by fonderco, Jan 18, 2011.

  1. fonderco

    fonderco New Member

    Joined:
    Mar 7, 2010
    Messages:
    27
    I have two wordpress installations.

    1. in the root
    2. in the folder called "beta"

    I have done the "new_rewrite" protection of the beta folder.

    When I go to mydomain.com/beta I am redirected to the login correctly. After I login I am redirected to the /beta home page correctly.

    But, none of the Wordpress permalinks work. They show the 404 page of the root folder, but the URL is correct.

    If I remove the amember code in the /beta/.htaccess file then it works.

    What am I missing????
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    For permalinks to work, you need to have special htaccess file content from wordpress. amember is overwriting this. This has been discussed before on the fourm- do a search for permalinks and you should find the solution.

    David
  3. fonderco

    fonderco New Member

    Joined:
    Mar 7, 2010
    Messages:
    27
    @davidm1 thanks for the reply. But I looked at that. I have both the amember htaccess code and the wordpress htaccess code in the same htaccess file.

    I noticed another thread that stated I can't use permalinks and folder protection... I hope that isn't the case.
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Make sure that wordpress code is on the top of .htaccess file inside protected folder.
  5. kengary

    kengary aMember Pro Customer

    Joined:
    Nov 13, 2008
    Messages:
    231
    Let me revive this thread because I just encountered a problem I never knew existed before and I can demonstrate it.

    I too have aMember installed in the /myaccount/ folder.

    I've protected the /members/ folder with aMember using new_rewrite.

    I've installed Wordpress into /members/ and have the custom permalinks configured.

    I edited the .htaccess the way you recommend and the way I have always thought was the right way to do it.

    But what happens is that if you go to a wordpress page within the /members/ folder it redirects a few times and then shows the content of the page without any of the CSS from the theme.

    What I'm saying, if it is not clear, is that it allows you to see the protected content!

    Here is an example. Click on this link and watch carefully at what happens:

    http://serviceforlife.net/members/support

    I can show you the .htaccess file if it would help. (Or I can submit a ticket so you can look closer.)
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Ken,
    Yes please show htaccess file that you have in that folder.

Share This Page