project
- lib
- assets
* img
* css
* plugin
* boostrap
- function
- error_document
* 403.php
- index.php
Hello i want to redirect not show url when user/visitor access folder
example
when user acces folder or sub folder like lib,assets,img,css,plugin,boostrap,function,error_document
localhost/project/lib
localhost/project/assets/css/
then redirect to error_document/403.php but not show url redirect
localhost/project/error_document/403.php
im already try this question but i cannot set redirect to error_document/403.php then i must create file .htaccess in sub folder (lib,assets,function,error_document) i want to only .htaccess in folder project and redirect not show url redirect
this is my htaccess in folder lib
<IfModule mod_rewrite.c>
RewriteCond %{THE_REQUEST} /lib [NC]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [F]
</IfModule>
Help, me thank's