Mod rewrite Code Library
Code Library - User
Agent Based
page delivery
Content Delivery
User Agent Delivery of content
htaccess code
RewriteEngine on
# for testing RewriteCond %{HTTP_USER_AGENT} ^mozilla.*[OR]
RewriteCond %{HTTP_USER_AGENT} ^gogglebot.* [OR]
RewriteCond %{HTTP_USER_AGENT}
^scraperbot.*
RewriteRule ^index.htm$
/index.html[L]
Caution:
User Agent Delivery can be very useful tool but most search engines
consider this practice a violation of the terms of service. Your
site could or page could be penalized if you deliver pages to their bots/spiders
that are different than what a normal user would see.
|