RewriteEngine On RewriteCond %{HTTP_USER_AGENT} UserAgentA [OR] RewriteCond %{HTTP_USER_AGENT} UserAgentB RewriteRule ^/* http://www.domain.com/sorry.html [L]