I have been investigate a bit. Will code below work? Not so easy to check.
RewriteEngine on
HostnameLookups Double
RewriteCond %{REMOTE_HOST} (.googlebot.com) [NC]
RewriteRule ^(.*)$ /do-something [L,R]
I worry the most for part
HostnameLookups Double
It says in some place that works only in httpd.confg, vps, directory(not shure what this last means if not .htaccess but not saying in htaccess).
Do you have knowledge about this issue?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…