Image

Imageelvishly wrote in Imagephp

[solved] .htaccess and denying access to files

Hello,

I'm trying to deny all access from a file in a folder except for .css files.

In my .htaccess I have:

Order Allow,Deny
Deny from All

SetEnvIfNoCase Request_URI "\.css$" allow_css
Allow from env=allow_css


But it doesn't work. I'm not sure what to edit?

Much help appreciated, thank you.


Solved -- thanks Imagesigne!