.htaccess translation

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
natvetorg
-


Joined: 06 Sep 2005
Posts: 11
Location: Victoria TX

PostPosted: Mon Jan 18, 2010 9:39 pm    Post subject: .htaccess translation Reply with quote

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
Back to top View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group