Posts: 1003 Location: Eh? Joined: 10.04.09 Rank: Mad User
Posted on 09-04-11 05:49
Method 1: index.php file that silently returns 404
/* index.php */
header('HTTP/1.0 404 Not Found');
Method 2: Using .htaccess
Deny from all
RedirectMatch 404 ^/directory(/?|/.*)$
Method 3: Instead of putting the above code in .htaccess, it also works in the server config files perfectly fine.
Method 4: Also, yet another way would be to use Apache's mod_rewrite, instead of RedirectMatch.
There are a ton of ways to achieve what you're looking for, hopefully one of the two I mapped out for you will be to your preference. If you're still actually checking this thread, of course.
The irony of man's condition is that the deepest need is to be free of the anxiety of death and annihilation; but it is life itself which awakens it, and so we must shrink from being fully alive. http://www.stealt. . .