Hello all,

I am having some trouble with .htacces:

I want to protect my phpbb forum by having the htaccess file check if a cookie exists. If it doesn't, i want the person to be refered to google.com, if it does, I want it to jsut show the user the forum just show the forum.

The website structure is like this:


(cookieset.php is the page that creates the cookie if right password was entered)
The cookie is set, that part works fine. Then the user proceeds to the forum directory, that page is displayed, no problems at all. But when I try to go to (for example) the admin panel (which is in a seperate directory), the script suddenly refers me to: http://www.google.nl/?redirect=admin...7ab2f275efd4f0

This is de .htaccess I am using, hope you can help me!
RewriteEngine on
RewriteCond %{HTTP_COOKIE}!^.*cookie-name.*$ [NC]
RewriteRule .* http://www.google.com [NC,L]