title: Multiple robots.txt for subdomains in rails
body: <p>I have a site with multiple subdomains and I want the named subdomains robots.txt to be different from the www one.</p>
  
  <p>I tried to use .htaccess, but the FastCGI doesn't look at it.</p>
  
  <p>So, I was trying to set up routes, but it doesn't seem that you can't do a direct rewrite since every routes needs a controller:</p>
  
  <pre><code>map.connect '/robots.txt', :controller =&gt; ?, :path =&gt; '/robots.www.txt', :conditions =&gt; { :subdomain =&gt; 'www' }
  map.connect '/robots.txt', :controller =&gt; ?,  :path =&gt; '/robots.club.txt'
  </code></pre>
  
  <p>What would be the best way to approach this problem?</p>
  
  <p>(I am using the request_routing plugin for subdomains)</p>