Admin Login is Redirected to Member Login

Discussion in 'Troubleshooting' started by neehowbaby, Apr 17, 2015.

  1. neehowbaby

    neehowbaby New Member

    Joined:
    Feb 11, 2013
    Messages:
    5
    All of a sudden my https://www.ploquickpro.com/member/admin/ will not allow me to enter the control panel. When I enter the admin credentials I've been using for the last few years, I'm redirected to https://www.ploquickpro.com/member/login which is the normal login for regular members which obviously doesn't work.

    I have not done any updates or changes to amember in about 1 year and the only recent changes have been to the wordpress front-end but none of them had anything to do with amember nor even the amember plugin. Any help would be greatly appreciated as I have no idea where to even begin troubleshooting this bizarre occurrence.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Probably the problem could be in rewrite rules which you have in .htaccess file.
    Can you copy& paste contents of .htaccess file which you have in your public_html folder?
  3. neehowbaby

    neehowbaby New Member

    Joined:
    Feb 11, 2013
    Messages:
    5
    Hey Alexander

    This is what the .htaccess in the public_html folder shows:

    Code:
    # Modified
    # If you modify this file then change the above line to: # Modified
    # Start iDevAffiliate SEO Code
    
    RewriteEngine On
    
    # Forced Tier Linking Code
    RewriteRule ^signup-([0-9]+)\.html$ https://www\.ploquickpro\.com/affiliate/signup\.php?ref=$1 [R=301,L]
    
    # TextAds
    RewriteRule ^([0-9]+)-([a-z]+)-([0-9]+)\.html$ https://www\.ploquickpro\.com/affiliate/idevads\.php?id=$1&ad=$3 [R=301,L]
    RewriteRule ^([0-9]+)-([a-z]+)-([0-9]+)-([0-9]+)\.html$ https://www\.ploquickpro\.com/affiliate/idevads\.php?id=$1&ad=$3&page=$4 [R=301,L]
    
    # Standard Links
    RewriteRule ^([0-9]+)\.html$ https://www\.ploquickpro\.com/affiliate/idevaffiliate\.php?id=$1 [R=301,L]
    RewriteRule ^([0-9]+)-([0-9]+)\.html$ https://www\.ploquickpro\.com/affiliate/idevaffiliate\.php?id=$1&page=$2 [R=301,L]
    RewriteRule ^([0-9]+)-([0-9]+)-([0-9]+)\.html$ https://www\.ploquickpro\.com/affiliate/idevaffiliate\.php?id=$1&page=$2&set=$3 [R=301,L]
    RewriteRule ^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ https://www\.ploquickpro\.com/affiliate/idevaffiliate\.php?id=$1&page=$2&set=$3&link=$4 [R=301,L]
    RewriteRule ^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([a-zA-Z]+)\.html$ https://www\.ploquickpro\.com/affiliate/idevaffiliate\.php?id=$1&page=$2&set=$3&link=$4&keyword=$5 [R=301,L]
    RewriteRule ^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([a-zA-Z]+)-([0-9]+)\.html$ https://www\.ploquickpro\.com/affiliate/idevaffiliate\.php?id=$1&page=$2&set=$3&link=$4&keyword=$5&custom=$6 [R=301,L]
    RewriteRule ^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+)\.html$ https://www\.ploquickpro\.com/affiliate/idevaffiliate\.php?id=$1&page=$2&set=$3&link=$4&keyword=$5&custom=$6&url=$7 [R=301,L]
    
    # End iDevAffiliate SEO Code
    <IfModule mod_rewrite.c>
    RewriteEngine On
    # Certain hosts may require the following line.
    # If vanilla is in a subfolder then you need to specify it after the /.
    # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
    # RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
    </IfModule>
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    AddType video/mp4             .mp4
    AddType video/webm            .webm
    AddType video/ogg             .ogv
    AddType application/x-mpegurl .m3u8
    AddType video/x-m4v           .m4v
    # hls transport stream segments:
    AddType video/mp2t            .ts
    
    This is what the .htaccess file from inside the amember folder shows:

    Code:
    #  Sample Nginx rules configuration:
    #  aMember rules (replace /amember to actual aMember Pro path from site root)
    #
    #       location ~* ^/amember/.*\.(js|ico|gif|jpg|png|css|swf|csv)$ {}
    #       location ~* ^/amember/setup/index.php$ { try_files not-existing-file @php; }
    #       location ~* ^/amember/js.php { try_files not-exiting-file @php; }
    #       location ~* ^/amember/index.php$ { try_files not-existing-file @php; }
    #       location ~* ^/amember/public.php$ { try_files not-existing-file @php; }
    #
    #       location ~* ^/amember/public { rewrite ^.*$ /amember/public.php; }
    #       location ~* ^/amember/setup { rewrite ^.*$ /amember/setup/index.php; }
    #       location ~* ^/amember { rewrite ^.*$ /amember/index.php; }
    #
    #  you must already have something like that in your nginx configuration:
    #
    #       location ~ \.php$ {
    #          try_files not-existing-file @php;
    #       }
    #       location @php {
    #         fastcgi_pass 127.0.0.1:9000;
    #         include fastcgi_params;
    #       }
    #
    #  it is necessary to have @php section, as it is referred by aMember rules, and
    #  it must be located at bottom
    #
    #
    <IfModule mod_rewrite.c>
        RewriteEngine on
    #        RewriteCond %{HTTPS} !=on
    #RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    # You may need to uncomment the following line if rewrite fails to work
    # RewriteBase must be setup to base URL of your aMember installation without
    # domain name
        RewriteBase /~ploqui5/member
    #RewriteBase /member
        RewriteRule ^public public.php [L]
        RewriteRule ^js.php js.php [L]
        RewriteRule !\.(js|ico|gif|jpg|png|css|swf|csv|html)$ index.php
    </IfModule>
    
    <IfModule mod_php5.c>
    #  php_flag magic_quotes_gpc off
    </IfModule>
    
  4. neehowbaby

    neehowbaby New Member

    Joined:
    Feb 11, 2013
    Messages:
    5
    I think I figured it out. The problem was in the amember .htaccess. Thanks for pointing me in the right direction.

Share This Page