new_rewrite

Discussion in 'Setting-up protection' started by joris, Nov 26, 2006.

  1. joris

    joris New Member

    Joined:
    Oct 2, 2006
    Messages:
    3
    I would like to protect a folder with the new_rewrite protection. However I cannot enable this in amember: "RewriteRule doesn't work in .htaccess files on this server."
    Although RewriteMod is enabled on the server.
    It seems I can only use: htpasswd but then I will not be able to use a customized login page.
    What do I need to do?
    Kind regards,
    Joris
  2. joris

    joris New Member

    Joined:
    Oct 2, 2006
    Messages:
    3
    BTW: when I test 1.php I get: 1-first_file
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It means mod_rewrite is not working.

    You should see
    2-second_file

    Check that :
    - file amember/data/tests/mod_rewrite/.htaccess is uploaded
    - mod_rewrite is enabled in your Apache configuration
    - AllowOverride is On for web folder in your Apache configuration
  4. sboben

    sboben New Member

    Joined:
    Oct 5, 2006
    Messages:
    48
    Alex can you explain this a bit more. I did not have this issue when you installed aMember to my server, but I'm configuring it for a friend now and he's got this issue despite using the same host as me.

    I have no idea what .htaccess is or where I get it. I can see there's no .htaccess in the mod_rewrite folder. I have a new_rewrite plug-in enabled in aMember admin, but I don't see one named mod_rewrite. I don't see any option called AllowOverride either, on any setup panel.

    Can you tell me exactly where to find all this and how to fix it?
  5. sboben

    sboben New Member

    Joined:
    Oct 5, 2006
    Messages:
    48
    Just an update to that... I checked my own installation and I do not have .htaccess in my mod_rewrite folder either, yet my new_rewrite works. I get 2-second_file and the folder permissions are set to 777. Still scratching head.
  6. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    .htaccess files are hidden on most FTP servers.
    Use webhosting control panel file manager to see it.
  7. nitinceh

    nitinceh New Member

    Joined:
    May 3, 2007
    Messages:
    2
    Hi Alex,

    followed your post on:
    http://www.amember.com/forum/showthread.php?t=5254
    It means mod_rewrite is not working.

    You should see
    2-second_file

    Check that :
    - file amember/data/tests/mod_rewrite/.htaccess is uploaded
    - mod_rewrite is enabled in your Apache configuration
    - AllowOverride is On for web folder in your Apache configuration


    Now i get the "You should see
    2-second_file"

    but now I am not able to access the protected area , it keeps asking for password

    can you help

Share This Page