Strange Loop in Joomla Integration

Discussion in 'Integration' started by zack, May 18, 2009.

  1. zack

    zack New Member

    Joined:
    Aug 29, 2006
    Messages:
    1
    Hello,

    I'm trying to get a Joomla integration working with a plain old single login for a single product. The whole site is protected, members.domain.com

    Also, it's on Dreamhost so we had to do the special wrapper trick to get aMember to run: .htaccess =

    Options +ExecCGI
    AddHandler php5-cgi .php
    Action php-cgi /cgi-bin/php-wrapper.cgi
    Action php5-cgi /cgi-bin/php-wrapper.cgi


    Now we create a protected directory using new_rewrite and set .htaccess to 777 so that the script can add the new rules to .htaccess:

    ########### AMEMBER START #####################
    Options +FollowSymLinks
    RewriteEngine On

    ## allow access for product #1
    RewriteCond %{HTTP_COOKIE} amember_nr=([a-zA-Z0-9]+)
    RewriteCond /home/xxxxx/xxxxx/members.domain.com/amember/data/new_rewrite/%1-1 -f
    RewriteRule ^(.*)$ - [L]

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

    Then I add the previous rules back in so the wrapper will keep working and amember will keep running, but then here comes the problem,

    If I go to the main page members.domain.com it starts to redirect me to the amember login page, but then dies saying the following:

    Redirect Loop

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    I can't find what's causing this loop. Maybe it's in the Joomla plugin?

    Honestly no clue at this point.

    Any ideas?

    thanks for your time!!

    Best regards,
    -Zack
  2. velocegatto

    velocegatto New Member

    Joined:
    May 18, 2009
    Messages:
    15
    Hi there..
    I have just bought amember..
    Im also trying to figure things out.
    Can you plz send me your email ID friend ?

Share This Page