title: robots.txt htaccess block google
body: <p>In my .htaccess file I have:</p>
  
  <pre><code>&lt;Files ~ "\.(tpl|txt)$"&gt;
  Order deny,allow
  Deny from all
  &lt;/Files&gt;
  </code></pre>
  
  <p>This denies any text file from being read, but the Google search engine gives me the following error:</p>
  
  <pre><code>robots.txt Status
  
  http://mysite/robots.txt
  
  18 minutes ago  302 (Moved temporarily)
  </code></pre>
  
  <p>How can I modify .htaccess to permit Google to read robots.txt while prohibiting everyone else from accessing text files?</p>