Weird amember behavior

Discussion in 'Troubleshooting' started by fearlessstn, Jan 16, 2022.

  1. fearlessstn

    fearlessstn aMember Pro Customer

    Joined:
    Dec 8, 2021
    Messages:
    1
    So I have installed amember in the root of my domain and it works all fine. I created a file test.php in the folder to make a custom login script for my app (using this https://docs.amember.com/docs/API/Lite) and it just says HTTP/1.1 404 Not Found

    What? It doesn't matter what I write in the file, it just always says 404.

    So I move amember from root to a folder (amember), place the test.php file in root and it works fine. I move the file back to amember folder and i says 404 again. I am guessing there's some htaccess rule that's not allowing access to foreign files?

    I would like amember in the root folder so can anyone tell me how I do stop amember from doing this?

    Thanks
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello,

    Yes, aMember route all requests to index.php (with several exceptions).

    If you want to use test.php inside folder with aMember then please edit file .htaccess (in root folder with amember)
    and add:
    Code:
    RewriteRule ^test.php - [L]
    before last RewriteRule rule.

    Then you can access test.php file.

    Best Regards.
    fearlessstn likes this.

Share This Page