addressalign-toparrow-leftarrow-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 1launch-new-window--smalllight-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo


From: user 4.
Sent on: Wednesday, February 4, 2009 12:49 PM

I was trying the following to prevent a popup window in Firefox after logout when the person hits the backpage button.

When a user is not logged on ${REMOVE_USER} is undefined, but for some reason the first RewriteRule always executes.

I’ve tried all kinds of variations.


RewriteEngine On

RewriteCond %{REMOTE_USER} !=””

RewriteRule ^.*$ - [S=1]

RewriteRule ^.*$ http://domain/logged_out.html [R]


I would think if a variable is not defined the condition would fail, instead it seems to be evaluating to true.  Or is the value still defined even after logout?  Before login it’s not defined.

Does anyone know how to handle this?





People in this
Meetup are also in:

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