Hide Directory with .htaccess 404

I wanted to send a 404 status code instead of 403 (Forbidden) on a secretive directory of mine.

If the mod_rewrite module is available, return a 404 status, otherwise, deny all.


<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [L,R=404]
</IfModule>

<IfModule !mod_rewrite.c>
    Deny From All
</IfModule>