ZTE-Test
<Directory "/var/www/xxxxx">
SetEnvIfNoCase User-Agent "ZTE-Test" getoutOrder allow,deny
Allow from all
deny from env=getout
</Directory>
2: .htaccess
RewriteCond %{HTTP_USER_AGENT} ".*ZTE-Test.*" [OR]
RewriteCond %{HTTP_USER_AGENT} ".*Made by ZTE.*" [OR]
RewriteRule ^(.*)$ http://blog.slogra.com/
RewriteCond %{HTTP_USER_AGENT} ".*Made by ZTE.*" [OR]
RewriteRule ^(.*)$ http://blog.slogra.com/