Welcome Guest, Not a member yet? Register   Sign In
Exclude "deny from all" for custom assets folder?
#1

[eluser]Unknown[/eluser]
Hi,

I'm using CI2 and enabled the .htaccess which prevents direct access to files in the application folder.
I'm no master in .htaccess, but is it possible to addionally add a rule after that to allow access to a new "assets" folder? I want to keep it there because it belongs to that application directly and should not be placed outside the application folder.

On development I already tried something like
Code:
Deny from all

<Directory "path/to/assets">
Allow from all
</Directory>

But that doesn't work. Any ideas?




Theme © iAndrew 2016 - Forum software by © MyBB