The site contains redirect of all pdf files from the root of the site to the docs directory
RewriteRule ^([^/]+).pdf /docs/$1.pdf [R=301,L] However, in docs there is a pdf folder and any request, for example site.com/docs/pdf/qwerty.pdf , makes a redirect to site.com/docs/docs.pdf
How to make an exception to this folder?
.htaccessfile in thedocsfolder with a single line:RewriteEngine Off- Wiktor Stribiżew