Redirect to specific page if entering protected directories directly

Discussion in 'Setting-up protection' started by nocturnal, Mar 11, 2004.

  1. nocturnal

    nocturnal Guest

    I just installed aMember Pro and got everything working, just about anyways.

    I am placing .asx files in the protected directory. When I click on a link that points me to:

    http://www.domain.com/protdir/test.asx

    It redirects me to the login page and after logging in, the page doesn't go forward to a displayable html or php page or back to the link page. It won't because there is no html or visible webpage to go to. The .asx file makes an external call to Windows Media Player and the login page will just sit there.

    What I want to do is redirect users to a page if they enter the protected directory directly like below:


    BEGIN PAGE

    You need to be logged in order to view this. Please click HERE to login now.

    END PAGE



    Is this possible? Or is there a better solution?

    I am using mod_rewrite with php_include protection.

    Thanks!
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    discussed privately.

Share This Page