# ONLY for shared hosting where the domain's document root cannot be changed to /web.
# Put the whole project in public_html/, then save this file as public_html/.htaccess.
# It serves everything from /web and blocks the project files (.env, vendor, config…).
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(\.env|\.git|auth\.json|composer\.(json|lock)|config/|vendor/|wp-cli\.yml) - [F,L]
RewriteCond %{REQUEST_URI} !^/web/
RewriteRule ^(.*)$ /web/$1 [L]
</IfModule>
