Page is a not externally linkable
jdMorgan - 2:29 am on Sep 26, 2009 (gmt 0)
Jim
If installed in .htaccess, that code will cause an 'infinite' loop, repeatedly rewriting nogtb.php to itself until the server gives up. Fix for use in .htaccess:
RewriteEngine on
#
RewriteCond %{HTTP_USER_AGENT} GoogleToolbar [NC]
RewriteCond %{REQUEST_URI} !^/nogtb\.php$
RewriteRule ^ /nogtb.php [L]
or in more-compact form
RewriteEngine on
#
RewriteCond %{HTTP_USER_AGENT} GoogleToolbar [NC]
RewriteRule !^nogtb\.php$ /nogtb.php [L]
I disagree with telling your visitors what they can and cannot use on their own computers -- It seems a bit presumptuous if they're a potential customer. But if you're going to do it, at least don't put your server through an unnecessary workout while doing so.