Question about Rewrite Rule for .htaccess in protected folders

Discussion in 'Customization & add-ons' started by femur, Mar 26, 2009.

  1. femur

    femur aMember Pro Customer

    Joined:
    Mar 9, 2009
    Messages:
    25
    I'm an amember newbie, and I'd like to change the rewrite rule for protected folders so it goes to a different page than login.php. Basically, I'd like every folder I protect to go to a different, specific, preview page if one isn't a member.

    I see where to put in the new URL in the two lines in .htaccess in the folder, but what about the code after that "?v=-1&url=%{REQUEST_URI}?%{QUERY_STRING} [L,R]" on the first line, and "?v=-1&url=%{REQUEST_URI} [L,R]" on the second.

    Is it okay to delete this extra text?

    Is there any downside to changing the rewrite rule away from login.php?

    Sorry if this is a dumb question or has been asked before (searched but didn't see it).

    Thanks!!!
  2. femur

    femur aMember Pro Customer

    Joined:
    Mar 9, 2009
    Messages:
    25
    I guess I probably should have posted this under "Setting Up and Protection". Sorry about that.
  3. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    Hi femur,

    Yes, it's okay to remove the extra text.

    But on a separate note - your current members will also see the preview page. Suggest to put a "login here" link somewhere prominent on your preview page.

    Lee

Share This Page