i'm trying to hide some directories on my site by returning 404 not found error codes instead of forbidden, the problem is that the files in the directory becomes not available to php.
how can i hide the directories by returning 404 error codes for them without making them unavailable to me also?
i have seen this in apple.com and facebook.com.
this is the code i'm using in .htaccess:
Options All -Indexes RedirectMatch 404 ^/classes(/?|/.*)$ RedirectMatch 404 ^/css(/?|/.*)$
if it's not possible how can i hide them without returning 403 because wans a hacker sees 403 he will go make some coffee sit infront of his laptop and won't leave my site without some data.
EDIT: this where i'v seen it http://images.apple.com/global/styles/
i'm not saying i want to hide very important stuff....
the important stuff are outside the web root, what i'm saying is i want to hide directories like this directory for example.