natvetorg -
 
  Joined: 06 Sep 2005 Posts: 11 Location: Victoria TX
  | 
		
			
				 Posted: Mon Jan 18, 2010 9:39 pm    Post subject: .htaccess translation | 
				      | 
			 
			
				
  | 
			 
			
				I have been after this for a week now. I got it to recognize the http_cookie but the redirect is giving me fits. I used the aws_mrt it skipped the first set of conditions entirely. Here is the .htaccess script:
 
 
Options +FollowSymLinks
 
RewriteEngine On
 
 
## allow access for any active subscription
 
RewriteCond %{HTTP_COOKIE} amember_nr=([a-zA-Z0-9]+)
 
RewriteCond /Abyss Web Server/htdocs/amember/data/new_rewrite/%1 -f 
 
RewriteRule ^(.*)$ - [L]
 
 
## if user is not authorized, redirect to login page
 
# BrowserMatch "MSIE" force-no-vary
 
RewriteCond %{QUERY_STRING} (.+)
 
RewriteRule ^(.*)$ http://nvo.org/amember/plugins/protect/new_rewrite/login.php?v=-any&url=%{REQUEST_URI}?%{QUERY_STRING} [L,R]
 
RewriteRule ^(.*)$ http://nvo.org/amember/plugins/protect/new_rewrite/login.php?v=-any&url=%{REQUEST_URI} [L,R]
 
 
Here is the aws_mrt
 
 
 	 Enabled Rule
 
Virtual Path Regular Expression: 	^/Members/(.*)$
 
  	Case Sensitive
 
Conditions:	
 
Variable: 	QUERY_STRING
 
Operator: 	Matches with
 
Regular Expression: 	(.+)
 
  	Case Sensitive
 
  	Apply to subrequests too
 
If this rule matches: 	Perform an external redirection
 
Redirect to: 	http://nvo.org/amember/plugins/protect/new_rewrite/login.php?v=-any&url=%{REQUEST_URI}?%{QUERY_STRING}
 
  	Append Query String
 
  	Escape Redirection Location
 
Status Code: 	302 - Moved Temporarily
 
 
 
 
  	Enabled Rule
 
Virtual Path Regular Expression: 	^/Members/(.*)$
 
  	Case Sensitive
 
Conditions:	Empty
 
  	Apply to subrequests too
 
If this rule matches: 	Perform an external redirection
 
Redirect to: 	http://nvo.org/amember/plugins/protect/new_rewrite/login.php?v=-any&url=%{REQUEST_URI}
 
  	Escape Redirection Location
 
Status Code: 	302 - Moved Temporarily
 
 
This puts me in a loop and has nothing about http_cookie
 
 
 
Just point me in the right direction.
 
 
Thanks | 
			 
		  |