Re: [users@httpd] Restricting access to all folders except one using mod_rewrite

2011-09-15 Thread Eric Covener
On Thu, Sep 15, 2011 at 7:55 PM, Sebastian Tarach wrote: > I'm just curious why it isn't working when I think it should. For the > production server I will be using nginx web server either way. I just > want to learn something useful about Apache. Additionally Directory > and DirectoryMatch aren't

Re: [users@httpd] Restricting access to all folders except one using mod_rewrite

2011-09-15 Thread Sebastian Tarach
I'm just curious why it isn't working when I think it should. For the production server I will be using nginx web server either way. I just want to learn something useful about Apache. Additionally Directory and DirectoryMatch aren't avaiable in htaccess files. So my question still remains. On 16

Re: [users@httpd] Restricting access to all folders except one using mod_rewrite

2011-09-15 Thread Igor Cicimov
Why dont you use Directory statement instead with Allow/Deny and modify the default 404 page? On Sep 16, 2011 4:13 AM, "Sebastian Tarach" wrote: > Hello, > I have all my files that I want clients to have access to in one > folder named assets. I want to forbid direct access to any other > folders

[users@httpd] Restricting access to all folders except one using mod_rewrite

2011-09-15 Thread Sebastian Tarach
Hello, I have all my files that I want clients to have access to in one folder named assets. I want to forbid direct access to any other folders and their files. RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule \.(?!assets.+)$ index.php?path=error404 RewriteC