amember new_rewrite with custom url rewriting

Discussion in 'Integration' started by isuru, Jun 9, 2010.

  1. isuru

    isuru New Member

    Joined:
    Jun 9, 2010
    Messages:
    1
    I setup amember for new_rewrite to protect my wordpress blog full which is works fine. I want to add custom url rewriting to .htaccess also but i'm unable to do it if you guys has any idea of this please help me.

    my aMember file

    ########### AMEMBER START #####################
    Options +FollowSymLinks
    RewriteEngine On

    ## allow access for product #1
    RewriteCond %{HTTP_COOKIE} amember_nr=([a-zA-Z0-9]+)
    RewriteCond /hermes/web07b/xx/XXX/learn/aMember/data/new_rewrite/%1-1 -f

    RewriteRule ^(.*)$ - [L]

    ## if user is not authorized, redirect to login page
    # BrowserMatch "MSIE" force-no-vary
    RewriteCond %{QUERY_STRING} (.+)
    RewriteRule ^(.*)$ http://www.mysite.com/aMember/plugins/protect/new_rewrite/login.php?v=-1&url=%{REQUEST_URI}?%{QUERY_STRING} [L,R]
    RewriteRule ^(.*)$ http://www.mysite.com/aMember/plugins/protect/new_rewrite/login.php?v=-1&url=%{REQUEST_URI} [L,R]
    ########### AMEMBER FINISH ####################


    I want to combine this

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /access/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /access/index.php [L]
    </IfModule>

    # END WordPress
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Try this:
    after
    RewriteEngine On
    Add:
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /access/index.php [L]


    David

Share This Page