addressalign-toparrow-leftarrow-leftarrow-right-10x10arrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1languagelaunch-new-window--smalllight-bulblightning-boltlinklocation-pinlockm-swarmSearchmailmediummessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstar-shapestartickettrashtriangle-downtriangle-uptwitteruserwarningyahooyoutube

RE: [linux-392] RewriteCond

From: user 4.
Sent on: Saturday, December 20, 2008, 6:14 PM

I think this works.

SetEnvIf Authorization "^$" anon

<FilesMatch ^(.*)+\.html$>

Order Allow,Deny

Allow from All

Deny from env=anon

AuthType Basic

AuthName "Login"

require group theGroup

</FilesMatch>

I have to fix the filesmatch but it basically seems to do what I was looking for.

 


From: [address removed] [mailto:[address removed]] On Behalf Of Dan
Sent: Saturday, December 20, 2008 2:39 PM
To: [address removed]
Subject: Re: [linux-392] RewriteCond

 

http://httpd.apache.org/lists.html

On Sat, Dec 20, 2008 at 2:35 PM, Michele <[address removed]> wrote:

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]

 





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Michele ([address removed]) from The New York GNU/Linux Meetup Group.
To learn more about Michele, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA






--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Dan ([address removed]) from The New York GNU/Linux Meetup Group.
To learn more about Dan , visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA

People in this
group are also in: