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
Try this: after RewriteEngine On Add: RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /access/index.php [L] David