I want to prevent access to a folder /workspace/test
I've done this with the following piece of code
RewriteRule ^(workspace/test) / [R=404,L,NC] Now I have a second rewrite rule
RewriteRule ^news\/(.*)$ workspace/test/news.php [L,NC] The problem it that I get a 404 because of the first rewrite rule.
Is it possible deny access to files if the user enters it in the URL but allow access to these files if I do it with a RewriteRule?