How should I add a global htaccess rules?

How should I add a global htaccess rules?

I want add a global htaccess rules like this:

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^ApacheBench
RewriteRule ^(.*)$ http://people.com.cn/

but when i added it on /etc/httpd/conf/httpd.conf .it won’t work.
it works normal on other server.

This makes me very troubled.
what i can do?
thanks.

Comments are closed.