title: mod_rewrite: Exact URL not matching but matches non exact
body: <p>I am having issues while using mod_rewrite in an .htaccess file to redirect to another domain.</p>
  
  <p>Here's what I have:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^www.somedomain.com/events_detail/an-event [NC]
  RewriteRule ^(.*)$ http://otherdomain.com/directory/8559 [L,R=301,NC]
  
  RewriteCond %{HTTP_HOST} ^www.somedomain.com [NC]
  RewriteRule ^(.*)$ http://otherdomain.com/directory [L,R=301,NC]
  </code></pre>
  
  <p>For some reason <code>www.somedomain.com/events_detail/an-event</code> I get redirected to <code>http://otherdomain.com/directory</code> instead of <code>http://otherdomain.com/directory/8559</code></p>
  
  <p>When testing out my .htaccess on a tester, it indicates that it does not match the first condition but matches the second. I have tried removing the L option, removing the forward ^ without success.</p>
  
  <p>Thank you</p>