...

Deny from all - respond with 404 statuscode instead of 403

ivarbug
05-23-2009, 04:20 PM
I use Apache directory directives to block access to certain media on a site. But instead of blocking access to something, I want to hide it by responding with a 404. How can I do it? And is it possible without using mod rewrite?

schleppel
05-27-2009, 12:10 AM
The only way i can think of is with mod_rewrite
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^thedirectory(/.*)?$ /404 [L]



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum