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

2011-09-15 Thread Sebastian Tarach
remains. On 16 September 2011 01:07, Igor Cicimov wrote: > 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 client

[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