title: rewritebase in subdomain makes php a downloadable file
body: <p>I am having a big problem understanding how htaccess works.</p>
  
  <p><strong>Case 1: I have my htaccess in root (/public_html/) directory</strong></p>
  
  <p>This is the content of my htaccess:</p>
  
  <pre><code>RewriteBase /
  
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule "^(.*)$" "index.php?_url=$1" [QSA,L]
  RewriteRule /*\.(css|js|gif|png|jpe?g|ico|swf|csv|html|xlsx|xls|xml)$ - [NC,L]
  AddType application/x-httpd-php .php
  </code></pre>
  
  <p>That perfectly converted, say "<a href="http://sitename.com/stuff/here" rel="nofollow">http://sitename.com/stuff/here</a>" to "<a href="http://sitename.com/?_url=stuff/here" rel="nofollow">http://sitename.com/?_url=stuff/here</a>"</p>
  
  <p><strong>BUT! Case 2, I have my htaccess in a subdomain</strong></p>
  
  <p><strong>The goal</strong>: To convert "<a href="http://mini.sitename.com/stuff/here" rel="nofollow">http://mini.sitename.com/stuff/here</a>" to "<a href="http://mini.sitename.com/?_url=stuff/here" rel="nofollow">http://mini.sitename.com/?_url=stuff/here</a>"</p>
  
  <p>In this case if I put my htaccess either <strong>inside /public_html/mini/</strong> or <strong>inside /public_html/</strong> directory where that htaccess has this content:</p>
  
  <pre><code>RewriteBase /mini/
  # the rest are similar to above
  </code></pre>
  
  <p><a href="http://mini.sitename.com/" rel="nofollow">http://mini.sitename.com/</a> <strong>DOWNLOADS</strong> the index.php file instead of running it! How crazy is that?!</p>
  
  <p>So my questions are:</p>
  
  <ol>
  <li>Obviously, what do I need to write in .htaccess file, and where should I put that .htaccess file, to achieve that goal?</li>
  <li>Why did the downloading happen? I mean, I don't even.. what?</li>
  </ol>