title: .htaccess multi condition problems
body: <p>i have wildcard dns on my domain...
  and have following in my htaccess</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
  RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9-]+)\.domain\.com$ [NC]
  RewriteRule !^index\.php($|/) sub.php?name=%2 [PT,L]
  </code></pre>
  
  <p>now i want to control different conditions via different php files..
  i.e
  i want to control....</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9-]+)\.domain\.com$ [NC]
  RewriteRule !^index\.php($|/) sub.php?name=%2 [PT,L]
  </code></pre>
  
  <p>via sub.php
  and</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9-]+)\.domain\.com/something.html$ [NC]
  RewriteRule !^index\.php($|/) sub_more.php?name=%2&amp;more=$1 [PT,L]
  </code></pre>
  
  <p>with sub_more but it is not working how can i arrange conditions so that if something.html is requested it reads from sub_more.php and homepage from sub.php</p>