title: Htaccess redirect a folder if it contain some folder otherwise not redirect
body: <p>I want to do like this.. <code>domian-name.com/daily-deals/some-folder/</code> to <code>domain-name.com/deals/some-folder/</code> I created a rule:</p>
  
  <pre><code>RewriteRule ^/?daily-deals/(.*)$ deals/$1 [R=301,L]
  </code></pre>
  
  <p>but I don't want to redirect daily-deals if it empty..</p>
  
  <pre><code>http://domian-name.com/daily-deals/folder-1/ --&gt; http://domain-name.com/deals/folder-1/
  http://domian-name.com/daily-deals/folder-2/ --&gt; http://domain-name.com/deals/folder-2/
  if :
  http://domian-name.com/daily-deals/ skip redirecting --&gt; http://domain-name.com/daily-deals/
  </code></pre>