Reputation: 3
What I want to happen is:
Scenario:
As far as I know, mod_rewrite can help me with this, but I'm not sure how could this be done.
Upvotes: 0
Views: 144
Reputation: 41219
To deny access to an entire folder, you can use :
RedirectMatch 403 ^/folder.*$
To allow access to a particular file inside a restricted folder , you could use :
RedirectMatch 403 ^/folder/?((?!this_file).*)$
Upvotes: 0