In the webroot of my local server, I try to install Bedrock in it self directory :
|- htdocs
|- bedrock
|- web
With the .htaccess file I wrote, I can access the web directory and so launch my application :
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301]
RewriteCond %{HTTP_HOST} ^(www.)?example.local$
RewriteCond %{REQUEST_URI} !^/bedrock/web/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /bedrock/web/$1
RewriteCond %{HTTP_HOST} ^(www.)?example.local$
RewriteRule ^(/)?$ bedrock/web/index.php [L]
However I would like to avoid accessing to bedrock directory with the url : example.local/bedrock.
Can I do this with rewrite module from Apache or do I have to add a .htaccess with deny from all in the bedrock directory ?