I have a CMS installation with a link such as


I want to place a few PDF files in the same directory as the above HTML such that the PDFs are accessible from


However, after creating the physical directories in the server, I am not able to access


It gives the error

Forbidden You don't have permission to access /archives/ on this server.

I neither want to change the name of the sef url so that it don't match the directory name, nor, change the name of the directory. Is there a better solution on apache level?


We need to exclude the particular directory in htaccess file using conditional rewrite. In my case, it is

RewriteCond %{REQUEST_URI} ^/archives/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.