How Do I Gain Access To The Protected Folder

Discussion in 'Setting-up protection' started by barrym67, Mar 5, 2008.

  1. barrym67

    barrym67 New Member

    Joined:
    Feb 23, 2008
    Messages:
    28
    I have a protected folder, right. I created an index.html file within that folder. I try to login to that folder and page is not found.

    How do I set up my product that I or any other member can actually gain access to the protected area once they have logged in?

    I have tried various options in the PRODUCT URL section and none work. I have tried the whole URL specific to that index.html file and updated the product, no luck after logging in. I have also tried just having /members/ , no luck.

    What do I do now?

    There really should be more in-depth help for stupid people, coz that's what I feel like, we are just left in the dark here. There should be more informative help. :mad:

    When I try to login in this is the error message:

    The website cannot display the page

    Most likely causes:
    The website is under maintenance.
    The website has a programming error.

    ANY HELP PLEASE WOULD BE APPRECITATED - - - I AM BEGGING, I HAVE NEVER BEEN MORE FRUSTRATED!! (well sorry I am ranting here, I am also moving to a new server at the same time, things are just hectic!)
  2. barrym67

    barrym67 New Member

    Joined:
    Feb 23, 2008
    Messages:
    28
    If I set the product URL to /members/ I get this error:

    The webpage cannot be found
    HTTP 404
    Most likely causes:
    There might be a typing error in the address.
    If you clicked on a link, it may be out of date.

    Is there a way or do you have to tell aMemeber that the index.html page in the protected folder is the root url (or whatever you want to call it) or default url. in my instance it is the index page to all the other pages with content. Am I doing something wrong here or is that other top secret information that I am not being told about.

    I see that often when a problem is posted in this forum it has been fixed by Alex and or there is never any feedback as to how the problem was resolved and this is terribly frustrating.

    I seem like a moaner and I apologise, but you literally have to ask and wait for 24 hours, ask and wait - it is a bit much. Someone should climb on the bandwagon and make a THOROUGH, I MEAN REALLY THOROUGH MANUAL ON HOW TO USE aMember literally COVERING EVERY STEP OF THE WAY and they would make a fortune. I have seen two websites out there with videos tutorials and neither actually cover all the steps that a newbie would need to know!
  3. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    It sounds like a problem with your server not properly set up to look for index.html as the directory index.
    Try adding this to your .htaccess file

    DirectoryIndex index.shtml
    DirectoryIndex index.html
    DirectoryIndex index.cgi
    DirectoryIndex index.php

    David
  4. barrym67

    barrym67 New Member

    Joined:
    Feb 23, 2008
    Messages:
    28
    David, thank you, I will go and give that a try. I see that you are a very helpful and active member of the forum and you give lots of advice. It is appreciated. I will post back with my results.
  5. barrym67

    barrym67 New Member

    Joined:
    Feb 23, 2008
    Messages:
    28
    Hi David

    I added that to my .htaccess file which is in the /members/ folder. I then tried to log-in in and it immediately took me to a 404 error page and the url changed to www.mysite.com/members/
    and the error message was:
    The webpage cannot be found
    HTTP 404
    Most likely causes:
    There might be a typing error in the address.
    If you clicked on a link, it may be out of date.

    I just opened the .htaccess file remotely through my FTP programme and pasted your advice below what Alex had put in there to make the re-write work when protecting folders. I then saved and closed the remote .htaccess file.

    Have I done the steps correctly?
  6. barrym67

    barrym67 New Member

    Joined:
    Feb 23, 2008
    Messages:
    28
    Here is a detailed list of how I have things setup, perhaps the problem lies here:

    PROPERTIES OF THE PROTECTED FOLDER:

    Folder for protection - /home/******/public_html/members/

    Protected URL - index.html

    New rewrite is the protection of choice and I have my membership options highlighted at the bottom of the page that require members to log onto.

    There is no tick in: Just any active subscription is enough

    and I clicked on CONTINUE.

    aMember then takes me back to the list of protected folders and now it shows me that folder properties:

    /home/******/public_html/members/ URL - index.html

    BUT - - - if I click on the index.html from the properties page, it takes me to this URL:

    http://*******/********/amember/admin/index.html

    Now I ask, must the index.html be in the admin folder then??? That does not seem correct, if this is not correct that ADMIN is showing up, how do I fix this?

    Surely it should show up as /public_html/members/index.html ??


    SETTINGS ON MY ACTUAL MEMBERSHIP PRODUCT:

    URL is set to /members/

    I have set up the .htaccess file as you suggested. I cannot think of anything else that I could add here for someone to try and figure out what my problem is.

    Thank you in advance!
  7. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
  8. barrym67

    barrym67 New Member

    Joined:
    Feb 23, 2008
    Messages:
    28
    Hi David

    Yes, that is exactly how it is. Should the members folder be within amember? I would like to know that answer to that, even though Alex has fixed the problem. He wrote me and said that:
    I've updated Product URL and folder protection.
    Now it works correct, please check.
  9. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
  10. barrym67

    barrym67 New Member

    Joined:
    Feb 23, 2008
    Messages:
    28
    Hi David, thanks for your response.

    I see what Alex did. It was a very dumb error on my part, but in my defense setting up aMember has been very daunting and my technical experience with regards to this is very lacking.

    You see my site is still in operation on another hosting platform and I am in the process of moving it to another hosting company. I could not install and test aMember on my existing platform as it is windows based.

    I did not include the temporary URL dns settings that are pointing to my new site platform and now it works. I just assumed that aMember would know where I was working from as I had protected the folder through aMember and pointed to it via my admin panel. It need the whole URL as I said, with the temporary DNS settings.

    Regards

    Barry

Share This Page