RewriteCond

From: user 4961150
Sent on: Saturday, December 20, 2008 2:35 PM

I’m trying to redirect a user to a new page if the user has not been authenticated.

How I have is this.

RewriteEngine on

RewriteCond %{REMOTE_USER} ^$ [nc]

RewriteRule ^(.*)$ ../newpage.html [R,L]

However, this redirects every time.

Does anyone know what the condition should be?

I also tried

RewriteEngine on

RewriteCond %{REMOTE_USER} =””

RewriteRule ^(.*)$ ../newpage.html [R,L]

 

Our Sponsors

  • Yodle

    Yodle generously provides space for the New York Linux meetup.

People in this
Meetup are also in:

Log in

Not registered with us yet?

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy