title: htaccess - Redirect all PDF files excluding PDFs in specified folders
body: <p>We have a lot of PDFs on our site that aren't quite done yet, but the links to them are scattered throughout our site. So we want an htaccess rule that redirects all links to PDF files to a landing page, while also allowing the links to work normally if the PDFs are within certain directories.</p>
  
  <p>So if all PDFs in the /xyz/ directory are done, we'd like the redirect rule to exclude all PDFs in the /xyz/ directory, while all other PDF links go to the landing page.</p>
  
  <p>Here's kind of what I mean even though it doesn't work yet:</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_URI} !^/xyz/$ [NC]
  RewriteRule ^.*\.pdf$ /landing-page.php [R=301,L]
  </code></pre>
  
  <p>Any ideas? Thank you!</p>