It is probably very simple but I can't find it. I want to make a .htaccess file so no one can get into the folder. except for the php on the server.
does anyone know the code line?
Thanks Matthy
You want
Deny from all
Instead of denying all traffic you could try redirecting it with mod_rewrite to make it useful i.e. back into the flow of the site.
RewriteEngine on
rewriteRule ^path/to/forbidden/directory/? index.php [L]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With