Folder protection issues on the cloud

Discussion in 'Setting-up protection' started by marlonc_sanders, Jan 21, 2011.

  1. marlonc_sanders

    marlonc_sanders New Member

    Joined:
    Aug 29, 2006
    Messages:
    9
    Hi,

    We moved Amember from a dedicated server running
    Linux/Apache at OLM to Rackspace Cloud SITES running
    basically php and standard stuff.

    The htaccess is jacked up. We tried re-protecting
    files/folders but that didn't sold it.

    None of the images will display. If you delete the
    htaccess, the images display. But obviously you lose
    folder protection.

    I hired a programmer off scriptlance. He said we had
    to delete 2 lines off of the htaccess then add in
    4 or 5 other ones.

    But Amember SHOULD do this correctly when we re-protect
    the folders. What the heck could be wrong? Apparently
    the folder protection on new_rewrite isn't working right
    on the cloud.

    After deleting the 2 paragraphs and adding the others
    it does work but doing that everytime is going to be a
    real problem.

    ============================
    Programmers says to DELETE:
    ============================

    RewriteRule ^(.*)$ http://getyourproduct.com/members/plugins/protect/new_rewrite/login.php?v=-266,257,269,268,300,289,301,290,180,288,404,313,181,267,350,389,196,197&url=%{REQUEST_URI}?%{QUERY_STRING} [L,R]

    RewriteRule ^(.*)$ http://getyourproduct.com/members/plugins/protect/new_rewrite/login.php?v=-266,257,269,268,300,289,301,290,180,288,404,313,181,267,350,389,196,197&url=%{REQUEST_URI} [L,R]

    =========
    THEN ADD:
    =========

    RewriteRule ^(.*)index.php$ http://getyourproduct.com/members/plugins/protect/new_rewrite/login.php?v=-266,257,269,268,300,289,301,290,180,288,404,313,181,267,350,389,196,197&url=%{REQUEST_URI}?%{QUERY_STRING} [L,R]

    RewriteRule ^$ http://getyourproduct.com/members/plugins/protect/new_rewrite/login.php?v=-266,257,269,268,300,289,301,290,180,288,404,313,181,267,350,389,196,197&url=%{REQUEST_URI}?%{QUERY_STRING} [L,R]

    RewriteRule ^(.*)php$ http://getyourproduct.com/members/plugins/protect/new_rewrite/login.php?v=-266,257,269,268,300,289,301,290,180,288,404,313,181,267,350,389,196,197&url=%{REQUEST_URI}?%{QUERY_STRING} [L,R]

    RewriteRule ^(.*)php$ http://getyourproduct.com/members/plugins/protect/new_rewrite/login.php?v=-266,257,269,268,300,289,301,290,180,288,404,313,181,267,350,389,196,197&url=%{REQUEST_URI} [L,R]

    RewriteRule ^(.*)html$ http://getyourproduct.com/members/plugins/protect/new_rewrite/login.php?v=-266,257,269,268,300,289,301,290,180,288,404,313,181,267,350,389,196,197&url=%{REQUEST_URI}?%{QUERY_STRING} [L,R]

    RewriteRule ^(.*)html$ http://getyourproduct.com/members/plugins/protect/new_rewrite/login.php?v=-266,257,269,268,300,289,301,290,180,288,404,313,181,267,350,389,196,197&url=%{REQUEST_URI} [L,R]

    ==============================
    AMEMBER INSTALLATION DETAILS
    ==============================


    aMember 3.1.8PRO
    PHP 5.2.13 (apache2handler)
    OS Linux php5-n366.wc2.dfw1.sta...
    MySQL 5.0.77-log
    Root Folder /mnt/stor7-wc2-dfw1/522611/www.getyourproduct.com/web/content/members
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Suggested method is not correct.
    Below modifications will leave your content unprotected. In fact only php and html files will be protected if you will apply these mods, but images and other content that you have in your protected folder will be available without login.
    I fixed issue with images. (/amember/plugins/protect/new_rewrite/login.php was changed) Please let me know if it still exists.
  3. advertiser360

    advertiser360 New Member

    Joined:
    Mar 5, 2011
    Messages:
    2

Share This Page