Redirect Loop Error

Discussion in 'Troubleshooting' started by virg738, Sep 6, 2011.

  1. virg738

    virg738 New Member

    Joined:
    Nov 10, 2010
    Messages:
    3
    I have search this forum regarding this problem but it seems that all the solutions given doesn't fix my problem.

    Any suggestion.

    I am using new_rewrite protection and it seems running smoothly before but it turns messed up today.

    What exactly code do I need to paste here or information that might need in order to solve this problem.

    Thanks in advance.

    I really need this ASAP.
  2. virg738

    virg738 New Member

    Joined:
    Nov 10, 2010
    Messages:
    3
    ########### AMEMBER START #####################
    Options +FollowSymLinks
    RewriteEngine On

    ## allow access for product #2
    RewriteCond %{HTTP_COOKIE} amember_nr=([a-zA-Z0-9]+)
    RewriteCond /home/aviation/public_html/mysite.com/secure/data/new_rewrite/%1-2 -f
    RewriteRule ^(.*)$ - [L]

    ## if user is not authorized, redirect to login page
    # BrowserMatch "MSIE" force-no-vary
    RewriteCond %{QUERY_STRING} (.+)
    RewriteRule ^(.*)$ http://mysite.com/secure/plugins/protect/new_rewrite/login.php?v=-2&url=%{REQUEST_URI}?%{QUERY_STRING} [L,R]
    RewriteRule ^(.*)$ http://mysite.com/secure/plugins/protect/new_rewrite/login.php?v=-2&url=%{REQUEST_URI} [L,R]
    ########### AMEMBER FINISH ####################
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    First of all please try to reprotect all folders from amember CP -> Protect Folders
    Then check permissions on /amember/data/new_rewrite folder and try to set permissions to 777 (then check will this fix issue or not)
  4. virg738

    virg738 New Member

    Joined:
    Nov 10, 2010
    Messages:
    3
    That doesn't fix the issues.

    Thanks for reply anyway.
  5. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Please submit a ticket with FTP info, URL and sample login info.

    Or try to check it if you have technical skills:
    - clear browser cookies
    - restart browser
    - go to your protected folder
    - you must be redirected to login page
    - login
    - you must be redirected back to protected folder
    - now press Stop button in browser to stop cycle, and inspect site cookies
    - there must be a cookie named "amember_nr". remember its value
    - ftp to your website, and make sure file named as the cookie value is exists
    also there must be files named COOKIENAME-1, COOKIENAME-3 and so on.
    it is product ids active for user. Remember these ids

    Please post results of checking here, and we will try to help.
  6. marysenatori

    marysenatori New Member

    Joined:
    Nov 18, 2011
    Messages:
    20
    I'm having the same issue as the OP. Alex: I did the things you suggested above. The cookie I found appears on the server under data/new-rewrite. Along with four others. Do you need anything else to be able to help?
  7. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Please submit ticket in helpdesk and provide access info and explain how this issue can be recreated.

Share This Page