Helpful when you need to point your web root directory to another folder rather than the default public_html/ folder. For instance, bedrock uses public_html/web/ folder as its Document Root.
If your web host does not provide the functionality to do so, you can use the following configuration if you’re using Apache.
RewriteEngine on
RewriteCond %{REQUEST_URI} !web/
RewriteRule ^(.*)$ /web/$1 [L]