Forum Moderators: phranque
RewriteEngine on
RewriteCond %{HTTP_COOKIE} !TestLogin
RewriteRule ^(.*)$ http://www.example.com/login.htm [R]
i have replaced 2nd line with all of the followings
RewriteCond %{HTTP_COOKIE} !(TestLogin)
RewriteCond %{HTTP_COOKIE} !^TestLogin$
RewriteCond %{HTTP_COOKIE} !^.*TestLogin.*$
RewriteCond %{HTTP_COOKIE} !^TestLogin$ [NC]
but none of this works the way i want it to.. it just redirects the user, doesnt matter if cookie is set or not.. i have checked that cookie is getting set but htaccess/apache cant find it :s
[edited by: jdMorgan at 2:05 pm (utc) on Dec. 6, 2006]
[edit reason] formatting, example.com [/edit]
RewriteEngine on
RewriteCond %{HTTP_COOKIE} !LoggedIn=1
RewriteRule ^(.*)$ http://www.example.com/login.htm [R]
just submitting it for anyone who gets stuck with this
[edited by: jdMorgan at 2:03 pm (utc) on Dec. 6, 2006]
[edit reason] Formatting, example.com [/edit]