title: .htaccess code for folder>subfolder>subfolder>allfiles.html (or jpg) redirect
body: <p>I have tried various combinations and I'm going a bit crazy trying to figure out the .htaccess code to redirect all files in a folder>subfolder>subfolder>allfiles.html (or jpg)redirect</p>
  
  <p>domain.com/portfolio/fashion-beauty/pages/<em>.</em></p>
  
  <p>to</p>
  
  <p><a href="http://myportfolio.smugmug.com" rel="nofollow">http://myportfolio.smugmug.com</a></p>
  
  <p>this is the latest I have tried with no luck...</p>
  
  <pre><code>Options +FollowSymlinks -MultiViews
  RewriteEngine On
  RewriteBase /
  RewriteCond %{HTTP_HOST} ^www\.primary\.com  [NC]
  RewriteRule ^portfolio/fashion-beauty/pages/(.*) $ http://myportfolio.smugmug.com/$1 [R=301,NC,L]
  </code></pre>
  
  <p>Thank you for any help</p>