title: Redirect bots to static version of site
body: <p>Basically, I want to redirect bots from the regular site to the static version using the .htaccess file.</p>
  
  <p>Here's the situation:
  URLs in my site are in these formats:</p>
  
  <pre><code>http://example.com/?p=something
  http://example.com/index.html?p=something
  http://example.com/basic.php?p=something
  </code></pre>
  
  <p>and I want to use the .htaccess file to redirect bots that crawl one of the first 2 URLs into one like the third by either replacing index.html with basic.php or adding it if it's not present. The root should also become basic.php instead of index.html.</p>
  
  <p>This is my current .htaccess file, which is wrong because it only works if the URL contains index.html</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTP_USER_AGENT} (googlebot|InfoSeek|msnbot|bingbot|Slurp|DuckDuckBot) [NC]
  RewriteRule ^index\.html$ /basic.php [L,R]
  </code></pre>
  
  <p>If some kind soul could help me with this problem, it would be much appreciated. Thanks</p>