title: htaccess multiple RewriteConds
body: <p>This is my site root</p>
  
  <pre><code>/public_html
      beta/
          .htaccess
          public/
              index.php
              .htaccess
  </code></pre>
  
  <p>The first .htaccess inside beta folder is for changing dir from mysite.com/beta to <code>mysite.com/beta/public</code>:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{HTTP_HOST} ^mysite.com$ [NC,OR]
  RewriteCond %{HTTP_HOST} ^www.mysite.com/$
  RewriteCond %{REQUEST_URI} !beta/public/
  RewriteRule (.*) /beta/public/$1 [L]
  </code></pre>
  
  <p>The other.htaccess inside public folder is for shorten url from <code>index.php?photo_id=id</code> to <code>/id</code>:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php?photo_id=$1
  </code></pre>
  
  <p>How can I make these work both since for now only one of them work not together? Thanks</p>